esp_adc: add adc ulp mode disable enum
Prior to this commit, adc ulp is disabled by setting adc_oneshot_unit_init_cfg_t::ulp_mode to false. After this commit, a new enum `ADC_ULP_MODE_DISABLE` is added. So setting `ulp_mode` to `ADC_ULP_MODE_DISABLE`, instead of `false`, to disable the ulp mode.
This commit is contained in:
@@ -55,8 +55,9 @@ typedef enum {
|
||||
} adc_bitwidth_t;
|
||||
|
||||
typedef enum {
|
||||
ADC_ULP_MODE_FSM = 1, ///< ADC is controlled by ULP FSM
|
||||
ADC_ULP_MODE_RISCV = 2, ///< ADC is controlled by ULP RISCV
|
||||
ADC_ULP_MODE_DISABLE = 0, ///< ADC ULP mode is disabled
|
||||
ADC_ULP_MODE_FSM = 1, ///< ADC is controlled by ULP FSM
|
||||
ADC_ULP_MODE_RISCV = 2, ///< ADC is controlled by ULP RISCV
|
||||
} adc_ulp_mode_t;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user