X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Fadc_lm3s.h;fp=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Fadc_lm3s.h;h=ae677c5413e9ffd491f8646b2c28427f7c19dd70;hb=8ba40b07b125a53d66052fa6a00d902f47bf0905;hp=0000000000000000000000000000000000000000;hpb=387a187563a9fab5c3a3261d5f030fc63a4b3c9f;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/adc_lm3s.h b/bertos/cpu/cortex-m3/drv/adc_lm3s.h new file mode 100644 index 00000000..ae677c54 --- /dev/null +++ b/bertos/cpu/cortex-m3/drv/adc_lm3s.h @@ -0,0 +1,70 @@ +/** + * \file + * + * + * \brief ADC hardware-specific definition + * + * \author Daniele Basile + */ + +#ifndef DRV_ADC_LM3S_H +#define DRV_ADC_LM3S_H + +#include "cfg/cfg_adc.h" + +#include + +/** + * ADC config define. + */ +#define ADC_MUX_MAXCH 17 //Max number of channel for ADC. +#define ADC_BITS 10 //Bit resolution for ADC converter. + +/** + * Define PIO controller for enable ADC function. + * \{ + */ + +/*\}*/ + +/** + * Init the ADC pins. + * Implement it if necessary. + */ +#define ADC_INIT_PINS() \ + 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_LM3S_H */