From 2a895914a8539a54765750620c406b88fff04eeb Mon Sep 17 00:00:00 2001 From: wzli Date: Mon, 5 Dec 2016 01:01:48 +0900 Subject: [PATCH] mapped vbus sampling adc interrupt --- Src/stm32f4xx_it.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/stm32f4xx_it.c b/Src/stm32f4xx_it.c index 0cfddbc4..5c61dc95 100644 --- a/Src/stm32f4xx_it.c +++ b/Src/stm32f4xx_it.c @@ -175,6 +175,7 @@ void ADC_IRQHandler(void) // The HAL's ADC handling mechanism adds thousands of clock cycles of overhead // So we bypass it and handle the logic ourselves. //@TODO add vbus meaasurement on adc1 here + ADC_IRQ_Dispatch(&hadc1, &vbus_sense_adc_cb); ADC_IRQ_Dispatch(&hadc2, &pwm_trig_adc_cb); ADC_IRQ_Dispatch(&hadc3, &pwm_trig_adc_cb);