Subversion Repositories FlightCtrl

Rev

Rev 2060 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2060 Rev 2088
Line 81... Line 81...
81
 
81
 
82
  // disable all interrupts before reconfiguration
82
  // disable all interrupts before reconfiguration
Line 83... Line 83...
83
  cli();
83
  cli();
84
 
-
 
85
  // Configure speaker port as output.
84
 
86
 
85
  // Configure speaker port as output.
87
  if (boardRelease == 10) { // Speaker at PD2
86
  if (boardRelease == 10) { // Speaker at PD2
88
    DDRD |= (1 << DDD2);
87
    DDRD |= (1 << DDD2);
89
    PORTD &= ~(1 << PORTD2);
88
    PORTD &= ~(1 << PORTD2);
Line 178... Line 177...
178
      PORTC &= ~(1 << PORTC7);// Speaker at PC7
177
      PORTC &= ~(1 << PORTC7);// Speaker at PC7
179
  }
178
  }
Line 180... Line 179...
180
 
179
 
181
#ifdef USE_MK3MAG
180
#ifdef USE_MK3MAG
182
  // update compass value if this option is enabled in the settings
181
  // update compass value if this option is enabled in the settings
183
  if (staticParams.bitConfig & (CFG_COMPASS_ENABLED | CFG_GPS_ENABLED)) {
182
  if (staticParams.bitConfig & CFG_COMPASS_ENABLED) {
184
    MK3MAG_periodicTask(); // read out mk3mag pwm
183
    MK3MAG_periodicTask(); // read out mk3mag pwm
185
  }
184
  }
186
#endif
185
#endif