Rev 1227 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1227 | Rev 1342 | ||
---|---|---|---|
Line 76... | Line 76... | ||
76 | #include "mk3mag.h" |
76 | #include "mk3mag.h" |
77 | #endif |
77 | #endif |
78 | #include "twimaster.h" |
78 | #include "twimaster.h" |
79 | #include "eeprom.h" |
79 | #include "eeprom.h" |
Line -... | Line 80... | ||
- | 80 | ||
- | 81 | #include "CapCalc.h" |
|
Line 80... | Line 82... | ||
80 | 82 | ||
81 | 83 | ||
Line 168... | Line 170... | ||
168 | MM3_Init(); |
170 | MM3_Init(); |
169 | #endif |
171 | #endif |
170 | #ifdef USE_MK3MAG |
172 | #ifdef USE_MK3MAG |
171 | MK3MAG_Init(); |
173 | MK3MAG_Init(); |
172 | #endif |
174 | #endif |
- | 175 | ||
- | 176 | CapCalc_Init(); |
|
Line 173... | Line 177... | ||
173 | 177 | ||
174 | // enable interrupts global |
178 | // enable interrupts global |
Line 175... | Line 179... | ||
175 | sei(); |
179 | sei(); |
Line 346... | Line 350... | ||
346 | SPI_StartTransmitPacket(); |
350 | SPI_StartTransmitPacket(); |
347 | SendSPI = 4; |
351 | SendSPI = 4; |
348 | #endif |
352 | #endif |
349 | timer = SetDelay(20); // every 20 ms |
353 | timer = SetDelay(20); // every 20 ms |
350 | } |
354 | } |
351 | - | ||
- | 355 | CapCalc_Update(); |
|
352 | LED_Update(); |
356 | LED_Update(); |
353 | } |
357 | } |
Line 354... | Line 358... | ||
354 | 358 | ||
355 | #ifdef USE_NAVICTRL |
359 | #ifdef USE_NAVICTRL |