* \author Daniele Basile <asterix@develer.com>
*/
-#ifndef DRV_ADC_AT91_H
-#define DRV_ADC_AT91_H
+#ifndef DRV_ADC_SAM3_H
+#define DRV_ADC_SAM3_H
#include <hw/hw_cpufreq.h>
*/
#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 */