Rev 430 | Rev 436 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 430 | Rev 434 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | int main (void) |
34 | int main (void) |
35 | { |
35 | { |
36 | static uint16_t FollowMe_Timer = 0; |
36 | static uint16_t FollowMe_Timer = 0; |
Line 37... | Line 37... | ||
37 | 37 | ||
38 | // disable interrupts global |
38 | // disable interrupts global |
Line 39... | Line 39... | ||
39 | cli(); |
39 | //cli(); |
40 | 40 | ||
41 | // disable watchdog |
41 | // disable watchdog |
42 | MCUSR &=~(1<<WDRF); |
42 | MCUSR &=~(1<<WDRF); |
Line 53... | Line 53... | ||
53 | ADC_Init(); |
53 | ADC_Init(); |
54 | Button_Init(); |
54 | Button_Init(); |
55 | // enable interrupts global |
55 | // enable interrupts global |
56 | sei(); |
56 | sei(); |
Line 57... | Line -... | ||
57 | - | ||
58 | LEDRED_OFF; |
- | |
59 | LEDGRN_ON; |
- | |
60 | 57 | ||
61 | // try to initialize the FAT 16 filesystem on the SD-Card |
58 | // try to initialize the FAT 16 filesystem on the SD-Card |
62 | Fat16_Init(); |
- | |
63 | 59 | Fat16_Init(); |
|
64 | // initialize the settings |
60 | // initialize the settings |
65 | Settings_Init(); |
61 | Settings_Init(); |
66 | // initialize logging (needs settings) |
62 | // initialize logging (needs settings) |
Line -... | Line 63... | ||
- | 63 | Logging_Init(); |
|
- | 64 | ||
- | 65 | LEDRED_OFF; |
|
67 | Logging_Init(); |
66 | LEDGRN_ON; |
68 | 67 | ||
69 | #ifdef USE_SDLOGGER |
68 | #ifdef USE_SDLOGGER |
70 | printf("\r\n\r\nHW: SD-Logger"); |
69 | printf("\r\n\r\nHW: SD-Logger"); |
71 | #endif |
70 | #endif |