Skip to content

Commit 2b8c123

Browse files
Delsiangalak
authored andcommitted
drivers: adc: Define max acquisition time
Required in STM32 tempereture sensor asquisition. Signed-off-by: Eug Krashtan <[email protected]>
1 parent 3c36cd4 commit 2b8c123

File tree

1 file changed

+1
-0
lines changed
  • include/dt-bindings/adc

1 file changed

+1
-0
lines changed

include/dt-bindings/adc/adc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#define ADC_ACQ_TIME(unit, value) (((unit) << 14) | ((value) & BIT_MASK(14)))
2525
/** Value indicating that the default acquisition time should be used. */
2626
#define ADC_ACQ_TIME_DEFAULT 0
27+
#define ADC_ACQ_TIME_MAX BIT_MASK(14)
2728

2829
#define ADC_ACQ_TIME_UNIT(time) (((time) >> 14) & BIT_MASK(2))
2930
#define ADC_ACQ_TIME_VALUE(time) ((time) & BIT_MASK(14))

0 commit comments

Comments
 (0)