X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fio%2Fsam3_adc.h;h=30bac49f8631ef43e8c343fef114e4aa513752e2;hb=d369c385f36aae74d203f6c40ee81c80d9032bbc;hp=9a506b0a98bf54a35203572346f47a2b58838df5;hpb=be43ace1f2758b563501428e6a9876b9a3129a48;p=bertos.git diff --git a/bertos/cpu/cortex-m3/io/sam3_adc.h b/bertos/cpu/cortex-m3/io/sam3_adc.h index 9a506b0a..30bac49f 100644 --- a/bertos/cpu/cortex-m3/io/sam3_adc.h +++ b/bertos/cpu/cortex-m3/io/sam3_adc.h @@ -34,6 +34,8 @@ * * SAM3 Analog to Digital Converter. * + * $WIZ$ + * */ @@ -84,6 +86,11 @@ #define ADC_STARTUP_MASK 0x000F0000 ///< Start up timer mask. #define ADC_STARTUP_SHIFT 16 ///< Start up timer shift. +/** + * Start up timer. + * $WIZ$ sam3_adc_sut = "ADC_SUT0","ADC_SUT8","ADC_SUT16","ADC_SUT24","ADC_SUT64","DC_SUT80","ADC_SUT96","ADC_SUT112","ADC_SUT512","ADC_SUT576","ADC_SUT640","ADC_SUT704","ADC_SUT768","ADC_SUT832","ADC_SUT896","ADC_SUT960" + * \{ + */ #define ADC_SUT0 0 ///< 0 period of ADCClock. #define ADC_SUT8 1 ///< 8 period of ADCClock. #define ADC_SUT16 2 ///< 16 period of ADCClock. @@ -100,9 +107,11 @@ #define ADC_SUT832 13 ///< 832 period of ADCClock. #define ADC_SUT896 14 ///< 896 period of ADCClock. #define ADC_SUT960 15 ///< 896 period of ADCClock. +/** \} */ /** - * Analog Settling Time + * Analog Settling Time. + * $WIZ$ sam3_adc_stt = "ADC_AST3", "ADC_AST5", "ADC_AST9", "ADC_AST17" */ #define ADC_SETTLING_MASK 0x00300000 ///< Analog Settling Time mask. #define ADC_SETTLING_SHIFT 20 ///< Analog Settling Time shift. @@ -239,6 +248,7 @@ #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 */