Rev 83 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 83 | Rev 88 | ||
---|---|---|---|
Line 69... | Line 69... | ||
69 | #include "spi_slave.h" |
69 | #include "spi_slave.h" |
70 | #include "fat16.h" |
70 | #include "fat16.h" |
71 | #include "usb.h" |
71 | #include "usb.h" |
72 | #include "sdc.h" |
72 | #include "sdc.h" |
73 | #include "logging.h" |
73 | #include "logging.h" |
- | 74 | #include "settings.h" |
|
74 | #include "main.h" |
75 | #include "main.h" |
Line 75... | Line 76... | ||
75 | 76 | ||
76 | u32 TimerCompassUpdate; |
77 | u32 TimerCompassUpdate; |
77 | u32 TimerCheckError; |
78 | u32 TimerCheckError; |
Line 239... | Line 240... | ||
239 | I2C1_Init(); |
240 | I2C1_Init(); |
240 | // initialize the gps position controller (needs Timer 1) |
241 | // initialize the gps position controller (needs Timer 1) |
241 | GPS_Init(); |
242 | GPS_Init(); |
242 | // initialize fat16 partition on sd card (needs Timer 1) |
243 | // initialize fat16 partition on sd card (needs Timer 1) |
243 | Fat16_Init(); |
244 | Fat16_Init(); |
- | 245 | // initialize the settings |
|
- | 246 | Settings_Init(); |
|
244 | // initialize logging |
247 | // initialize logging |
245 | Logging_Init(); |
248 | Logging_Init(); |
Line 246... | Line 249... | ||
246 | 249 | ||
247 | TimerCompassUpdate = SetDelay(5); |
250 | TimerCompassUpdate = SetDelay(5); |
Line 263... | Line 266... | ||
263 | { |
266 | { |
264 | SerialPutString("\n\r MK3Mag not compatible"); |
267 | SerialPutString("\n\r MK3Mag not compatible"); |
265 | LED_RED_ON; |
268 | LED_RED_ON; |
266 | } |
269 | } |
Line 267... | Line -... | ||
267 | - | ||
268 | /* |
- | |
269 | ReadSetting(1); |
- | |
270 | */ |
270 | |
Line 271... | Line 271... | ||
271 | SerialPutString("\r\n---------------------------------------------\r\n\r\n"); |
271 | SerialPutString("\r\n---------------------------------------------\r\n\r\n"); |
272 | 272 | ||
273 | for (;;) |
273 | for (;;) |