From 59a9dce7ec194ab629530710fc3c269ea79004b2 Mon Sep 17 00:00:00 2001 From: "Ben V. Brown" Date: Mon, 5 Apr 2021 16:29:17 +1000 Subject: [PATCH] Update IRQ.cpp --- source/Core/BSP/Miniware/IRQ.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/Core/BSP/Miniware/IRQ.cpp b/source/Core/BSP/Miniware/IRQ.cpp index 05689ef5..5afa4bf1 100644 --- a/source/Core/BSP/Miniware/IRQ.cpp +++ b/source/Core/BSP/Miniware/IRQ.cpp @@ -36,6 +36,10 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) { } bool getFUS302IRQLow() { +#ifdef POW_PD // Return true if the IRQ line is still held low return HAL_GPIO_ReadPin(INT_PD_GPIO_Port, INT_PD_Pin) == GPIO_PIN_RESET; +#else + return false; +#endif } \ No newline at end of file