Subversion Repositories NaviCtrl

Rev

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

Rev 116 Rev 119
Line 63... Line 63...
63
#include "uart0.h"
63
#include "uart0.h"
64
#include "uart1.h"
64
#include "uart1.h"
65
#include "uart2.h"
65
#include "uart2.h"
66
#include "GPS.h"
66
#include "GPS.h"
67
#include "i2c.h"
67
#include "i2c.h"
-
 
68
#include "timer1.h"
68
#include "timer.h"
69
#include "timer2.h"
69
#include "spi_slave.h"
70
#include "spi_slave.h"
70
#include "fat16.h"
71
#include "fat16.h"
71
#include "usb.h"
72
#include "usb.h"
72
#include "sdc.h"
73
#include "sdc.h"
73
#include "logging.h"
74
#include "logging.h"
Line 193... Line 194...
193
        SCU_AHBPeriphClockConfig(__VIC,ENABLE); // enable AHB bus clock for VIC
194
        SCU_AHBPeriphClockConfig(__VIC,ENABLE); // enable AHB bus clock for VIC
194
        SCU_AHBPeriphReset(__VIC, DISABLE);             // disable reset state for VIC
195
        SCU_AHBPeriphReset(__VIC, DISABLE);             // disable reset state for VIC
195
        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.
196
        // initialize the interrupt handler
197
        // initialize the interrupt handler
197
        Interrupt_Init();
198
        Interrupt_Init();
198
        // initialize timer 1
199
        // initialize timer 1 for System Clock and delay rountines
199
        TIMER1_Init();
200
        TIMER1_Init();
-
 
201
        // initialize timer 2 for servo outputs
-
 
202
        TIMER2_Init();
200
        // initialize the LEDs (needs Timer 1)
203
        // initialize the LEDs (needs Timer 1)
201
        Led_Init();
204
        Led_Init();
202
        // initialize the debug UART1
205
        // initialize the debug UART1
203
        UART1_Init();
206
        UART1_Init();
204
        UART1_PutString("\r\n---------------------------------------------");
207
        UART1_PutString("\r\n---------------------------------------------");