Rev 270 | Rev 292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 270 | Rev 275 | ||
---|---|---|---|
Line 316... | Line 316... | ||
316 | // initialize the LEDs (needs Timer 1) |
316 | // initialize the LEDs (needs Timer 1) |
317 | Led_Init(); |
317 | Led_Init(); |
318 | // initialize the debug UART1 |
318 | // initialize the debug UART1 |
319 | UART1_Init(); |
319 | UART1_Init(); |
320 | UART1_PutString("\r\n---------------------------------------------"); |
320 | UART1_PutString("\r\n---------------------------------------------"); |
- | 321 | // initialize usb |
|
- | 322 | USB_ConfigInit(); |
|
321 | // initialize timer 2 for servo outputs |
323 | // initialize timer 2 for servo outputs |
322 | //TIMER2_Init(); |
324 | //TIMER2_Init(); |
323 | // initialize UART2 to FLIGHTCTRL |
325 | // initialize UART2 to FLIGHTCTRL |
324 | UART2_Init(); |
326 | UART2_Init(); |
325 | // initialize UART0 (to MKGPS or MK3MAG) |
327 | // initialize UART0 (to MKGPS or MK3MAG) |
326 | UART0_Init(); |
328 | UART0_Init(); |
327 | // initialize adc |
329 | // initialize adc |
328 | Analog_Init(); |
330 | Analog_Init(); |
329 | // initialize usb |
- | |
330 | USB_ConfigInit(); |
- | |
331 | // initialize SPI0 to FC |
331 | // initialize SPI0 to FC |
332 | SPI0_Init(); |
332 | SPI0_Init(); |
333 | // initialize i2c bus (needs Timer 1) |
333 | // initialize i2c bus (needs Timer 1) |
334 | I2C1_Init(); |
334 | I2C1_Init(); |
335 | // initialize fat16 partition on sd card (needs Timer 1) |
335 | // initialize fat16 partition on sd card (needs Timer 1) |