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
@@ -25,6 +25,8 @@ extern "C" {
#define ADC_LL_EVENT_ADC1_ONESHOT_DONE (1 << 0)
#define ADC_LL_EVENT_ADC2_ONESHOT_DONE (1 << 1)
#define ADC_LL_NEED_APB_PERIPH_CLAIM(ADC_UNIT) (0)
/*---------------------------------------------------------------
Oneshot
---------------------------------------------------------------*/