1
0
forked from me/IronOS

Add manual irq line check for the int task for PD

This commit is contained in:
Ben V. Brown
2021-04-05 15:05:12 +10:00
parent 16ac45d74a
commit 854189d720
5 changed files with 26 additions and 9 deletions

View File

@@ -6,7 +6,9 @@
*/
#include "IRQ.h"
#include "Pins.h"
#include "int_n.h"
/*
* Catch the IRQ that says that the conversion is done on the temperature
* readings coming in Once these have come in we can unblock the PID so that it
@@ -32,3 +34,8 @@ void HAL_GPIO_EXTI_Callback(uint16_t GPIO_Pin) {
(void)GPIO_Pin;
InterruptHandler::irqCallback();
}
bool getFUS302IRQLow() {
// Return true if the IRQ line is still held low
return HAL_GPIO_ReadPin(INT_PD_GPIO_Port, INT_PD_Pin) == GPIO_PIN_RESET;
}