cfg_adc.h File Reference
Configuration file for the ADC module. More...
Go to the source code of this file.
Defines | |
| #define | ADC_LOG_LEVEL LOG_LVL_INFO |
| Module logging level. | |
| #define | ADC_LOG_FORMAT LOG_FMT_VERBOSE |
| Module logging format. | |
| #define | CONFIG_ADC_CLOCK 4800000UL |
| Clock Frequency for ADC conversion. | |
| #define | CONFIG_ADC_STARTUP_TIME 20 |
| Minimum time for starting up a conversion [us]. | |
| #define | CONFIG_ADC_SHTIME 834 |
| Minimum time for sample and hold [ns]. | |
| #define | CONFIG_ADC_AVR_REF ADC_AVR_AVCC |
| ADC Voltage Reference. | |
| #define | CONFIG_ADC_AVR_DIVISOR 2 |
| ADC clock divisor from main crystal. | |
| #define | CONFIG_ADC_STROBE 0 |
| Enable ADC strobe for debugging ADC ISR. | |
| #define | CONFIG_ADC_SUT ADC_SUT512 |
| Start up timer[s] = startup value / ADCClock [Hz]. | |
| #define | CONFIG_ADC_STTLING ADC_AST17 |
| Analog Settling Time[s] = settling value / ADCClock[Hz]. | |
| #define | CONFIG_ADC_TRACKTIM 0 |
| Tracking Time[s] = (TRACKTIM + 1) / ADCClock[Hz]. | |
| #define | CONFIG_ADC_TRANSFER 1 |
| Transfer Period[s] = (TRANSFER * 2 + 3) ADCClock[Hz]. | |
Detailed Description
Configuration file for the ADC module.
Definition in file cfg_adc.h.
Define Documentation
| #define CONFIG_ADC_CLOCK 4800000UL |
| #define CONFIG_ADC_STTLING ADC_AST17 |
| #define CONFIG_ADC_SUT ADC_SUT512 |
| #define CONFIG_ADC_TRACKTIM 0 |
![(please configure the [header_logo] section in trac.ini)](/chrome/site/bertos_logo.png)