diff options
author | Yves Fischer <yvesf-git@xapek.org> | 2011-10-11 21:56:36 +0200 |
---|---|---|
committer | Yves Fischer <yvesf-git@xapek.org> | 2011-10-11 21:56:36 +0200 |
commit | cbc941282074856fc6179761b70a0c9879b0b64d (patch) | |
tree | ed15c6d9e20ceaf1ff01a05aa63054410bb8ed54 /firmware/adc.h | |
parent | 324c5ba9098c1010d0aa8c1e26b95509878ce9f2 (diff) | |
download | mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.tar.gz mini-octopus-cbc941282074856fc6179761b70a0c9879b0b64d.zip |
update firmware to @319
Diffstat (limited to 'firmware/adc.h')
-rw-r--r-- | firmware/adc.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/firmware/adc.h b/firmware/adc.h index 3aa0a6f..1e85ff4 100644 --- a/firmware/adc.h +++ b/firmware/adc.h @@ -41,16 +41,17 @@ void adc_parser(char *buf); -int adc_init(int pin); -void adc_init_usb(int pin); +int adc_init(uint8_t pin); +void adc_init_usb(uint8_t pin); -void adc_ref_usb(int ref); -int adc_ref(int ref); +int adc_deinit(uint8_t pin); +void adc_deinit_usb(uint8_t pin); +int adc_ref(uint8_t ref); +void adc_ref_usb(uint8_t ref); - -int adc_get(int pin, uint16_t *value); -void adc_get_usb(int pin); -uint16_t _adc_read_channel(int mux); +int adc_get(uint8_t pin, uint16_t *value); +void adc_get_usb(uint8_t pin); +uint16_t _adc_read_channel(uint8_t mux); #endif /* ADC_H */ |