Rev 380 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 380 | Rev 580 | ||
---|---|---|---|
Line 70... | Line 70... | ||
70 | void UART2_Init(void) |
70 | void UART2_Init(void) |
71 | { |
71 | { |
72 | UART_InitTypeDef UART_InitStructure; |
72 | UART_InitTypeDef UART_InitStructure; |
73 | GPIO_InitTypeDef GPIO_InitStructure; |
73 | GPIO_InitTypeDef GPIO_InitStructure; |
Line 74... | Line 74... | ||
74 | 74 | ||
Line 75... | Line 75... | ||
75 | UART1_PutString("\r\n UART2 init..."); |
75 | // UART1_PutString("\r\n UART2 init..."); |
76 | 76 | ||
Line 77... | Line 77... | ||
77 | // initialize txd buffer |
77 | // initialize txd buffer |
Line 128... | Line 128... | ||
128 | // configure the uart 2 interupt line |
128 | // configure the uart 2 interupt line |
129 | VIC_Config(UART2_ITLine, VIC_IRQ, PRIORITY_UART2); |
129 | VIC_Config(UART2_ITLine, VIC_IRQ, PRIORITY_UART2); |
130 | // enable the uart 2 IRQ |
130 | // enable the uart 2 IRQ |
131 | VIC_ITCmd(UART2_ITLine, ENABLE); |
131 | VIC_ITCmd(UART2_ITLine, ENABLE); |
Line 132... | Line 132... | ||
132 | 132 | ||
133 | UART1_PutString("ok"); |
133 | // UART1_PutString("ok"); |
Line 134... | Line 134... | ||
134 | } |
134 | } |
135 | 135 |