Enhanced the ADC to be able to read all channels, and fixed bug in configuration of ADC.

This commit is contained in:
skarg
2010-09-21 19:50:16 +00:00
parent 9569f2c536
commit be7efebaa1
2 changed files with 82 additions and 18 deletions
+6 -2
View File
@@ -30,8 +30,12 @@
extern "C" {
#endif /* __cplusplus */
uint8_t adc_result(
uint8_t channel);
void adc_enable(
uint8_t index); /* 0..7 = ADC0..ADC7, respectively */
uint8_t adc_result_8bit(
uint8_t index); /* 0..7 = ADC0..ADC7, respectively */
uint16_t adc_result_10bit(
uint8_t index); /* 0..7 = ADC0..ADC7, respectively */
void adc_init(
void);