fix(adc): fix ESP32-P4 ADC2 oneshot error and refactor apb claim macor

This commit is contained in:
gaoxu
2026-02-04 15:59:23 +08:00
committed by Gao Xu
parent 060b4c9ef4
commit 5e06c779b0
11 changed files with 44 additions and 23 deletions
@@ -36,6 +36,8 @@ extern "C" {
#define ADC_LL_GET_HIGH_THRES_MASK(monitor_id) ((monitor_id == 0) ? APB_SARADC_ADC1_THRES_INT_ST_M : APB_SARADC_ADC2_THRES_INT_ST_M)
#define ADC_LL_GET_LOW_THRES_MASK(monitor_id) ((monitor_id == 0) ? APB_SARADC_ADC1_THRES_INT_ST_M : APB_SARADC_ADC2_THRES_INT_ST_M)
#define ADC_LL_NEED_APB_PERIPH_CLAIM(ADC_UNIT) (0)
/*---------------------------------------------------------------
Oneshot
---------------------------------------------------------------*/