Rev 136 | Rev 141 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 136 | Rev 139 | ||
---|---|---|---|
Line 120... | Line 120... | ||
120 | VIC_Config(ADC_ITLine, VIC_IRQ, PRIORITY_ADC); |
120 | VIC_Config(ADC_ITLine, VIC_IRQ, PRIORITY_ADC); |
121 | VIC_ITCmd(ADC_ITLine, ENABLE); |
121 | VIC_ITCmd(ADC_ITLine, ENABLE); |
Line 122... | Line 122... | ||
122 | 122 | ||
123 | UART1_PutString("ok"); |
123 | UART1_PutString("ok"); |
- | 124 | } |
|
- | 125 | ||
- | 126 | void Analog_Deinit(void) |
|
- | 127 | { |
|
- | 128 | VIC_ITCmd(ADC_ITLine, DISABLE); |
|
- | 129 | ADC_ConversionCmd(ADC_Conversion_Stop); |
|
- | 130 | ADC_ITConfig(ADC_IT_ECV, DISABLE); // disable end of conversion IRQ |
|
- | 131 | ADC_Cmd(DISABLE); // power down the ADC |
|
- | 132 | ADC_DeInit(); // reset register to default values |