Subversion Repositories NaviCtrl

Rev

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

Rev 110 Rev 134
Line 117... Line 117...
117
    UART_Init(UART2, &UART_InitStructure);  // initialize uart 2
117
    UART_Init(UART2, &UART_InitStructure);  // initialize uart 2
Line 118... Line 118...
118
 
118
 
119
        // enable uart 2 interrupts selective
119
        // enable uart 2 interrupts selective
120
    UART_ITConfig(UART2, UART_IT_Receive | UART_IT_ReceiveTimeOut, ENABLE);
120
    UART_ITConfig(UART2, UART_IT_Receive | UART_IT_ReceiveTimeOut, ENABLE);
121
        UART_Cmd(UART2, ENABLE); // enable uart 2
121
        UART_Cmd(UART2, ENABLE); // enable uart 2
122
        // configure the uart 2 interupt line as an IRQ with priority 9 (0 is highest)
122
        // configure the uart 2 interupt line as an IRQ with priority 5(0 is highest)
123
        VIC_Config(UART2_ITLine, VIC_IRQ, 9);
123
        VIC_Config(UART2_ITLine, VIC_IRQ, 5);
124
        // enable the uart 2 IRQ
124
        // enable the uart 2 IRQ
Line 125... Line 125...
125
        VIC_ITCmd(UART2_ITLine, ENABLE);
125
        VIC_ITCmd(UART2_ITLine, ENABLE);
126
 
126