1
0
forked from me/IronOS

Update IRQ.cpp

This commit is contained in:
Ben V. Brown
2021-04-05 16:29:17 +10:00
parent 0b02275192
commit 59a9dce7ec

View File

@@ -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
}