From 3d08ed98fdd36f8e0c9e85a6f7614707f79e881f Mon Sep 17 00:00:00 2001 From: cyberman54 Date: Sun, 5 Mar 2023 15:35:59 +0100 Subject: [PATCH] code sanitizations --- include/senddata.h | 2 +- src/main.cpp | 2 +- src/senddata.cpp | 9 +++++---- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/include/senddata.h b/include/senddata.h index e87d0b89..bc998fab 100644 --- a/include/senddata.h +++ b/include/senddata.h @@ -15,7 +15,7 @@ void sendData(void); void checkSendQueues(void); void flushQueues(void); bool allQueuesEmtpy(void); -void setSendIRQ(TimerHandle_t xTimer); +//void setSendIRQ(TimerHandle_t xTimer); void setSendIRQ(void); #endif // _SENDDATA_H_ diff --git a/src/main.cpp b/src/main.cpp index 7506a672..3d6783fe 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -71,7 +71,7 @@ PMUIRQ <- GPIO <- PMU chip Application IRQs fired by software: TIMESYNC_IRQ <- setTimeSyncIRQ() <- Ticker.h CYCLIC_IRQ <- setCyclicIRQ() <- Ticker.h -SENDCYCLE_IRQ <- setSendIRQ() <- xTimer or libpax callback +SENDCYCLE_IRQ <- setSendIRQ() <- libpax callback BME_IRQ <- setBMEIRQ() <- Ticker.h */ diff --git a/src/senddata.cpp b/src/senddata.cpp index c4c8ebd2..e6f181ce 100644 --- a/src/senddata.cpp +++ b/src/senddata.cpp @@ -1,12 +1,13 @@ // Basic Config #include "senddata.h" +// void setSendIRQ(TimerHandle_t xTimer) { +// xTaskNotify(irqHandlerTask, SENDCYCLE_IRQ, eSetBits); +//} -void setSendIRQ(TimerHandle_t xTimer) { - xTaskNotify(irqHandlerTask, SENDCYCLE_IRQ, eSetBits); -} +// void setSendIRQ(void) { setSendIRQ(NULL); } -void setSendIRQ(void) { setSendIRQ(NULL); } +void setSendIRQ(void) { xTaskNotify(irqHandlerTask, SENDCYCLE_IRQ, eSetBits); } // put data to send in RTos Queues used for transmit over channels Lora and SPI void SendPayload(uint8_t port) {