summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2020-01-31 20:49:59 +1100
committerDamien George <damien.p.george@gmail.com>2020-01-31 23:25:18 +1100
commit03b73ce329d6e46465942f4baa6ba5e2e27467bd (patch)
tree64c0a9bbfb4cc7b955e4789df75b84f0b59598ce
parent257b17ec10050a2b433b3eaca936818b5e6a67ed (diff)
stm32/stm32_it: Don't call __HAL_USB_HS_EXTI_CLEAR_FLAG on H7 MCUs.
It doesn't exist on these MCUs.
-rw-r--r--ports/stm32/stm32_it.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/stm32/stm32_it.c b/ports/stm32/stm32_it.c
index e77642b8e..1a2227217 100644
--- a/ports/stm32/stm32_it.c
+++ b/ports/stm32/stm32_it.c
@@ -415,8 +415,10 @@ void OTG_HS_WKUP_IRQHandler(void) {
OTG_CMD_WKUP_Handler(&pcd_hs_handle);
+ #if !defined(STM32H7)
/* Clear EXTI pending Bit*/
__HAL_USB_HS_EXTI_CLEAR_FLAG();
+ #endif
IRQ_EXIT(OTG_HS_WKUP_IRQn);
}