Rev 171 | Rev 179 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 171 | Rev 175 | ||
---|---|---|---|
Line 231... | Line 231... | ||
231 | // initialize SPI0 to FC |
231 | // initialize SPI0 to FC |
232 | SPI0_Init(); |
232 | SPI0_Init(); |
233 | // initialize i2c bus to MK3MAG (needs Timer 1) |
233 | // initialize i2c bus to MK3MAG (needs Timer 1) |
234 | I2C1_Init(); |
234 | I2C1_Init(); |
235 | // initialize the gps position controller (needs Timer 1) |
235 | // initialize the gps position controller (needs Timer 1) |
236 | GPS_Init(); |
- | |
237 | // initialize fat16 partition on sd card (needs Timer 1) |
- | |
238 | Fat16_Init(); |
236 | Fat16_Init(); |
239 | // initialize NC params |
237 | // initialize NC params |
240 | NCParams_Init(); |
238 | NCParams_Init(); |
241 | // initialize the settings |
239 | // initialize the settings |
242 | Settings_Init(); |
240 | Settings_Init(); |
243 | // initialize logging (needs settings) |
241 | // initialize logging (needs settings) |
244 | Logging_Init(); |
242 | Logging_Init(); |
Line 245... | Line 243... | ||
245 | 243 | ||
246 | TimerCheckError = SetDelay(3000); |
244 | TimerCheckError = SetDelay(3000); |
247 | UART1_PutString("\r\n---------------------------------------------"); |
245 | UART1_PutString("\r\n++++++++++++++++++++++++++++++++++++++++++"); |
Line 248... | Line 246... | ||
248 | UART1_PutString("\n\r Version information:"); |
246 | UART1_PutString("\n\r Version information:"); |
Line 249... | Line 247... | ||
249 | 247 | ||
Line 263... | Line 261... | ||
263 | LED_RED_ON; |
261 | LED_RED_ON; |
264 | } |
262 | } |
Line 265... | Line 263... | ||
265 | 263 | ||
Line -... | Line 264... | ||
- | 264 | UART0_GetMKOSDVersion(); |
|
266 | UART0_GetMKOSDVersion(); |
265 | |
Line 267... | Line 266... | ||
267 | 266 | GPS_Init(); |
|
268 | UART1_PutString("\r\n---------------------------------------------\r\n\r\n"); |
267 | // initialize fat16 partition on sd card (needs Timer 1) |
269 | 268 | ||
270 | // ---------- Prepare the isr driven |
269 | // ---------- Prepare the isr driven |