Rev 469 | Rev 472 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 469 | Rev 470 | ||
---|---|---|---|
Line 60... | Line 60... | ||
60 | #include "led.h" |
60 | #include "led.h" |
61 | #include "uart0.h" |
61 | #include "uart0.h" |
62 | #include "uart1.h" |
62 | #include "uart1.h" |
63 | #include "uart2.h" |
63 | #include "uart2.h" |
64 | #include "gps.h" |
64 | #include "gps.h" |
- | 65 | #include "i2c0.h" |
|
65 | #include "i2c.h" |
66 | #include "i2c1.h" |
66 | #include "compass.h" |
67 | #include "compass.h" |
67 | #include "ncmag.h" |
68 | #include "ncmag.h" |
68 | #include "timer1.h" |
69 | #include "timer1.h" |
69 | #include "timer2.h" |
70 | #include "timer2.h" |
70 | #include "analog.h" |
71 | #include "analog.h" |
71 | #include "spi_slave.h" |
72 | #include "spi_slave.h" |
72 | #include "fat16.h" |
73 | #include "fat16.h" |
73 | #include "usb.h" |
- | |
74 | #include "sdc.h" |
74 | #include "sdc.h" |
75 | #include "logging.h" |
75 | #include "logging.h" |
76 | #include "params.h" |
76 | #include "params.h" |
77 | #include "settings.h" |
77 | #include "settings.h" |
78 | #include "config.h" |
78 | #include "config.h" |
Line 493... | Line 493... | ||
493 | // initialize the LEDs (needs Timer 1) |
493 | // initialize the LEDs (needs Timer 1) |
494 | Led_Init(); |
494 | Led_Init(); |
495 | // initialize the debug UART1 |
495 | // initialize the debug UART1 |
496 | UART1_Init(); |
496 | UART1_Init(); |
497 | UART1_PutString("\r\n---------------------------------------------"); |
497 | UART1_PutString("\r\n---------------------------------------------"); |
498 | // initialize usb |
- | |
499 | // to do |
- | |
500 | //USB_ConfigInit(); // disable because of unexpected side effects with I2C0 |
- | |
501 | // initialize timer 2 for servo outputs |
498 | // initialize timer 2 for servo outputs |
502 | //TIMER2_Init(); |
499 | //TIMER2_Init(); |
503 | // initialize UART2 to FLIGHTCTRL |
500 | // initialize UART2 to FLIGHTCTRL |
504 | UART2_Init(); |
501 | UART2_Init(); |
505 | // initialize UART0 (to MKGPS or MK3MAG) |
502 | // initialize UART0 (to MKGPS or MK3MAG) |