projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add -fomit-frame-pointer when we are not in debug mode.
[bertos.git]
/
bertos
/
cpu
/
arm
/
drv
/
adc_at91.h
diff --git
a/bertos/cpu/arm/drv/adc_at91.h
b/bertos/cpu/arm/drv/adc_at91.h
index 6c77de0f431a72dabdfe013b9a1367746cb28e2e..07ef6a40927cd99e98d302d9f9ccb5036d006635 100644
(file)
--- a/
bertos/cpu/arm/drv/adc_at91.h
+++ b/
bertos/cpu/arm/drv/adc_at91.h
@@
-69,11
+69,11
@@
* Define PIO controller for enable ADC function.
* \{
*/
* Define PIO controller for enable ADC function.
* \{
*/
-#if CPU_ARM_
AT91SAM7X256
+#if CPU_ARM_
SAM7X
#define ADC_PIO_DISABLE PIOB_PDR
#define ADC_PIO_EN_FUNC PIOB_ASR
#define ADC_PIO_DISABLE PIOB_PDR
#define ADC_PIO_EN_FUNC PIOB_ASR
-#elif CPU_ARM_
AT91SAM7S256
+#elif CPU_ARM_
SAM7S_LARGE
#define ADC_PIO_DISABLE PIOA_PDR
#define ADC_PIO_EN_FUNC PIOA_BSR
#define ADC_PIO_DISABLE PIOA_PDR
#define ADC_PIO_EN_FUNC PIOA_BSR
@@
-90,5
+90,8
@@
do { \
} while (0)
do { \
} while (0)
+void adc_hw_select_ch(uint8_t ch);
+uint16_t adc_hw_read(void);
+void adc_hw_init(void);
#endif /* DRV_ADC_AT91_H */
#endif /* DRV_ADC_AT91_H */