Subversion Repositories NaviCtrl

Rev

Rev 119 | Rev 134 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 120
Line 196... Line 196...
196
        VIC_DeInit();                                                   // deinitializes the VIC module registers to their default reset values.
196
        VIC_DeInit();                                                   // deinitializes the VIC module registers to their default reset values.
197
        // initialize the interrupt handler
197
        // initialize the interrupt handler
198
        Interrupt_Init();
198
        Interrupt_Init();
199
        // initialize timer 1 for System Clock and delay rountines
199
        // initialize timer 1 for System Clock and delay rountines
200
        TIMER1_Init();
200
        TIMER1_Init();
201
        // initialize timer 2 for servo outputs
-
 
202
        TIMER2_Init();
-
 
203
        // initialize the LEDs (needs Timer 1)
201
        // initialize the LEDs (needs Timer 1)
204
        Led_Init();
202
        Led_Init();
205
        // initialize the debug UART1
203
        // initialize the debug UART1
206
        UART1_Init();
204
        UART1_Init();
207
        UART1_PutString("\r\n---------------------------------------------");
205
        UART1_PutString("\r\n---------------------------------------------");
-
 
206
        // initialize timer 2 for servo outputs
-
 
207
        TIMER2_Init();
208
        // initialize UART2 to FLIGHTCTRL
208
        // initialize UART2 to FLIGHTCTRL
209
        UART2_Init();
209
        UART2_Init();
210
        // initialize UART0 (to MKGPS or MK3MAG)
210
        // initialize UART0 (to MKGPS or MK3MAG)
211
        UART0_Init();
211
        UART0_Init();
212
        // initialize usb
212
        // initialize usb
Line 261... Line 261...
261
 
261
 
262
                USB_ProcessRxData();    // process request
262
                USB_ProcessRxData();    // process request
Line 263... Line 263...
263
                USB_TransmitTxData();   // send answer
263
                USB_TransmitTxData();   // send answer
264
 
-
 
265
                SPI0_UpdateBuffer();
264
 
266
 
265
                SPI0_UpdateBuffer();
267
                // ------------------------- I2C Timing --------------------------------
266
                // ------------------------- I2C Timing --------------------------------
268
                if(I2C_State != I2C_OFF)
267
                if(I2C_State != I2C_OFF)
269
                {
268
                {