Rev 778 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 778 | Rev 865 | ||
---|---|---|---|
Line 97... | Line 97... | ||
97 | 97 | ||
98 | void Analog_Init(void) |
98 | void Analog_Init(void) |
99 | { |
99 | { |
Line 100... | Line 100... | ||
100 | ADC_InitTypeDef ADC_InitStructure; |
100 | ADC_InitTypeDef ADC_InitStructure; |
Line 101... | Line 101... | ||
101 | 101 | ||
Line 102... | Line 102... | ||
102 | UART1_PutString("\r\n ADC init..."); |
102 | // UART1_PutString("\r\n ADC init..."); |
Line 137... | Line 137... | ||
137 | VIC_Config(ADC_ITLine, VIC_IRQ, PRIORITY_ADC); |
137 | VIC_Config(ADC_ITLine, VIC_IRQ, PRIORITY_ADC); |
Line 138... | Line 138... | ||
138 | 138 | ||
Line 139... | Line 139... | ||
139 | 139 | ||
140 | VIC_ITCmd(ADC_ITLine, ENABLE); |
140 | VIC_ITCmd(ADC_ITLine, ENABLE); |
Line 141... | Line 141... | ||
141 | 141 | ||
142 | UART1_PutString("ok"); |
142 | // UART1_PutString("ok"); |
143 | } |
143 | } |