X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fdrv%2Fadc_sam3.h;h=f46f940fb27fd8e882f811a2d8ff4277ad84febc;hb=f1fab319eb3fe91c157b3a9564841aef62a03554;hp=1a6ca5322619165d551e0ad4b85a751e826cb239;hpb=314ed649e840e0f398bf5d1f66cc01db6f8aec01;p=bertos.git diff --git a/bertos/cpu/cortex-m3/drv/adc_sam3.h b/bertos/cpu/cortex-m3/drv/adc_sam3.h index 1a6ca532..f46f940f 100644 --- a/bertos/cpu/cortex-m3/drv/adc_sam3.h +++ b/bertos/cpu/cortex-m3/drv/adc_sam3.h @@ -35,8 +35,8 @@ * \author Daniele Basile */ -#ifndef DRV_ADC_AT91_H -#define DRV_ADC_AT91_H +#ifndef DRV_ADC_SAM3_H +#define DRV_ADC_SAM3_H #include @@ -56,10 +56,9 @@ */ #define ADC_PRESCALER (DIV_ROUNDUP(CPU_FREQ, 2 * CONFIG_ADC_CLOCK) - 1) #define ADC_CLOCK (CPU_FREQ / ((ADC_PRESCALER + 1) * 2)) -#define ADC_STARTUPTIME (((CONFIG_ADC_STARTUP_TIME * ADC_COMPUTED_CLOCK) / 8000000UL) - 1) 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_SAM3_H */