projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix ADC configurations.
[bertos.git]
/
bertos
/
cpu
/
avr
/
drv
/
adc_avr.c
diff --git
a/bertos/cpu/avr/drv/adc_avr.c
b/bertos/cpu/avr/drv/adc_avr.c
index 8c3217e73c5551fed554d6bf71ae735335eb9852..2ba5982fe1da47c477c54474e2999ded7e0b43e4 100644
(file)
--- a/
bertos/cpu/avr/drv/adc_avr.c
+++ b/
bertos/cpu/avr/drv/adc_avr.c
@@
-37,6
+37,8
@@
* This module is automatically included so no need to include
* in test list.
* notest: avr
* This module is automatically included so no need to include
* in test list.
* notest: avr
+ *
+ * $WIZ$
*/
#include "adc_avr.h"
*/
#include "adc_avr.h"
@@
-54,9
+56,16
@@
#include <avr/io.h>
#include <avr/interrupt.h>
#include <avr/io.h>
#include <avr/interrupt.h>
+/**
+ * ADC voltage referencese.
+ *
+ * $WIZ$ avr_adc_refs = "ADC_AVR_AREF", "ADC_AVR_AVCC", "ADC_AVR_INT256"
+ * \{
+ */
#define ADC_AVR_AREF 0
#define ADC_AVR_AVCC 1
#define ADC_AVR_INT256 2
#define ADC_AVR_AREF 0
#define ADC_AVR_AVCC 1
#define ADC_AVR_INT256 2
+/* \} */
#if CONFIG_KERN
#include <cfg/module.h>
#if CONFIG_KERN
#include <cfg/module.h>
@@
-65,7
+74,7
@@
#if !CONFIG_KERN_SIGNALS
#if !CONFIG_KERN_SIGNALS
- #error Signals must be active to use ADC with kernel
+ #error Signals must be active to use
the
ADC with kernel
#endif
/* Signal adc convertion end */
#endif
/* Signal adc convertion end */