Subversion Repositories NaviCtrl

Rev

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

Rev 119 Rev 134
Line 230... Line 230...
230
    UART_Init(UART0, &UART_InitStructure);  // initialize uart 0
230
    UART_Init(UART0, &UART_InitStructure);  // initialize uart 0
Line 231... Line 231...
231
 
231
 
232
        // enable uart 0 interrupts selective
232
        // enable uart 0 interrupts selective
233
    UART_ITConfig(UART0, UART_IT_Receive | UART_IT_ReceiveTimeOut  /*| UART_IT_FrameError*/, ENABLE);
233
    UART_ITConfig(UART0, UART_IT_Receive | UART_IT_ReceiveTimeOut  /*| UART_IT_FrameError*/, ENABLE);
234
        UART_Cmd(UART0, ENABLE); // enable uart 0
234
        UART_Cmd(UART0, ENABLE); // enable uart 0
235
        // configure the uart 0 interupt line as an IRQ with priority 10 (0 is highest)
235
        // configure the uart 0 interupt line as an IRQ with priority 9 (0 is highest)
236
        VIC_Config(UART0_ITLine, VIC_IRQ, 10);
236
        VIC_Config(UART0_ITLine, VIC_IRQ, 9);
237
        // enable the uart 0 IRQ
237
        // enable the uart 0 IRQ
238
        VIC_ITCmd(UART0_ITLine, ENABLE);
238
        VIC_ITCmd(UART0_ITLine, ENABLE);
Line 239... Line 239...
239
        UART0_Connect_to_MKGPS();
239
        UART0_Connect_to_MKGPS();