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

This commit is contained in:
gaoxu
2025-06-17 18:48:28 +08:00
parent 2435ffd1c6
commit afadb17ed8
12 changed files with 48 additions and 21 deletions

View File

@@ -30,6 +30,8 @@ extern "C" {
#define ADC_LL_EVENT_ADC1_ONESHOT_DONE BIT(31)
#define ADC_LL_EVENT_ADC2_ONESHOT_DONE BIT(30)
#define ADC_LL_NEED_APB_PERIPH_CLAIM(ADC_UNIT) (1)
/*---------------------------------------------------------------
Oneshot
---------------------------------------------------------------*/