Rev 195 | Rev 199 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 195 | Rev 196 | ||
---|---|---|---|
Line 209... | Line 209... | ||
209 | SCU_Config(); |
209 | SCU_Config(); |
210 | /* init VIC (Vectored Interrupt Controller) */ |
210 | /* init VIC (Vectored Interrupt Controller) */ |
211 | SCU_AHBPeriphClockConfig(__VIC,ENABLE); // enable AHB bus clock for VIC |
211 | SCU_AHBPeriphClockConfig(__VIC,ENABLE); // enable AHB bus clock for VIC |
212 | SCU_AHBPeriphReset(__VIC, DISABLE); // disable reset state for VIC |
212 | SCU_AHBPeriphReset(__VIC, DISABLE); // disable reset state for VIC |
213 | VIC_DeInit(); // deinitializes the VIC module registers to their default reset values. |
213 | VIC_DeInit(); // deinitializes the VIC module registers to their default reset values. |
214 | // initialize the interrupt handler |
- | |
215 | Interrupt_Init(); |
214 | VIC_InitDefaultVectors(); |
- | 215 | ||
216 | // initialize timer 1 for System Clock and delay rountines |
216 | // initialize timer 1 for System Clock and delay rountines |
217 | TIMER1_Init(); |
217 | TIMER1_Init(); |
218 | // initialize the LEDs (needs Timer 1) |
218 | // initialize the LEDs (needs Timer 1) |
219 | Led_Init(); |
219 | Led_Init(); |
220 | // initialize the debug UART1 |
220 | // initialize the debug UART1 |