Update IRQ.cpp
This commit is contained in:
@@ -36,6 +36,10 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool getFUS302IRQLow() {
|
bool getFUS302IRQLow() {
|
||||||
|
#ifdef POW_PD
|
||||||
// Return true if the IRQ line is still held low
|
// Return true if the IRQ line is still held low
|
||||||
return HAL_GPIO_ReadPin(INT_PD_GPIO_Port, INT_PD_Pin) == GPIO_PIN_RESET;
|
return HAL_GPIO_ReadPin(INT_PD_GPIO_Port, INT_PD_Pin) == GPIO_PIN_RESET;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user