ADC_MR |= ((ADC_PRESCALER << ADC_PRESCALER_SHIFT) & ADC_PRESCALER_MASK);
LOG_INFO("prescaler[%ld]\n", ADC_PRESCALER);
ADC_MR |= ((CONFIG_ADC_SUT << ADC_STARTUP_SHIFT) & ADC_STARTUP_MASK);
- LOG_INFO("starup[%d]\n", ADC_SUT512);
+ LOG_INFO("starup[%d]\n", CONFIG_ADC_SUT);
ADC_MR |= ((CONFIG_ADC_STTLING << ADC_SETTLING_SHIFT) & ADC_SETTLING_MASK);
- LOG_INFO("sttime[%d]\n", ADC_AST17);
+ LOG_INFO("sttime[%d]\n", CONFIG_ADC_STTLING);
ADC_MR |= ((CONFIG_ADC_TRACKTIM << ADC_TRACKTIM_SHIFT) & ADC_TRACKTIM_MASK);
- LOG_INFO("tracking[%d]\n", 0);
+ LOG_INFO("tracking[%d]\n", CONFIG_ADC_TRACKTIM);
ADC_MR |= ((CONFIG_ADC_TRANSFER << ADC_TRANSFER_SHIFT) & ADC_TRANSFER_MASK);
- LOG_INFO("tranfer[%d]\n", 1);
+ LOG_INFO("tranfer[%d]\n", CONFIG_ADC_TRANSFER);
/* Register and enable irq for adc. */
sysirq_setHandler(INT_ADC, adc_conversion_end_irq);
#define ADC_ACR_OFF 0x00000094 ///< Analog control register offeset.
#define ADC_ACR (*((reg32_t *)(ADC_BASE + ADC_ACR_OFF))) ///< Analog control register.
#define ADC_TSON 4 ///< Temperature Sensor On.
+#define ADC_TEMPERATURE_CH 15 ///< Channel where is the internal sensor temperature
/* \} */
#endif /* SAM3_ADC_H */