drivers: adc: Define max acquisition time
Required in STM32 tempereture sensor asquisition. Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com>
This commit is contained in:
parent
3c36cd4242
commit
2b8c123a3b
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
|||
#define ADC_ACQ_TIME(unit, value) (((unit) << 14) | ((value) & BIT_MASK(14)))
|
||||
/** Value indicating that the default acquisition time should be used. */
|
||||
#define ADC_ACQ_TIME_DEFAULT 0
|
||||
#define ADC_ACQ_TIME_MAX BIT_MASK(14)
|
||||
|
||||
#define ADC_ACQ_TIME_UNIT(time) (((time) >> 14) & BIT_MASK(2))
|
||||
#define ADC_ACQ_TIME_VALUE(time) ((time) & BIT_MASK(14))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue