diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2011-10-13 20:33:30 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2011-10-13 20:33:30 +0200 |
commit | 5d9d373a959271b498710817d08c2ea8e153aa6e (patch) | |
tree | 6867e887454a850b4e15616000ef342a1c661c7e /firmware/adc.h | |
parent | 35a36b0a6c69ce136fd6ea2a203d34e48e1291e8 (diff) | |
download | mini-octopus-5d9d373a959271b498710817d08c2ea8e153aa6e.tar.gz mini-octopus-5d9d373a959271b498710817d08c2ea8e153aa6e.zip |
correct firmware??
Diffstat (limited to 'firmware/adc.h')
-rw-r--r-- | firmware/adc.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/firmware/adc.h b/firmware/adc.h index 1e85ff4..3aa0a6f 100644 --- a/firmware/adc.h +++ b/firmware/adc.h @@ -41,17 +41,16 @@ void adc_parser(char *buf); -int adc_init(uint8_t pin); -void adc_init_usb(uint8_t pin); +int adc_init(int pin); +void adc_init_usb(int pin); -int adc_deinit(uint8_t pin); -void adc_deinit_usb(uint8_t pin); +void adc_ref_usb(int ref); +int adc_ref(int ref); -int adc_ref(uint8_t ref); -void adc_ref_usb(uint8_t ref); -int adc_get(uint8_t pin, uint16_t *value); -void adc_get_usb(uint8_t pin); -uint16_t _adc_read_channel(uint8_t mux); + +int adc_get(int pin, uint16_t *value); +void adc_get_usb(int pin); +uint16_t _adc_read_channel(int mux); #endif /* ADC_H */ |