senddata.cpp sanitized

This commit is contained in:
cyberman54 2022-02-13 17:43:05 +01:00
parent 8e4fe93069
commit 88efd5dd4d
3 changed files with 3 additions and 5 deletions

View File

@ -16,7 +16,7 @@ void sendData(void);
void checkSendQueues(void); void checkSendQueues(void);
void flushQueues(void); void flushQueues(void);
bool allQueuesEmtpy(void); bool allQueuesEmtpy(void);
void setSendIRQ(TimerHandle_t xTimer = NULL); void setSendIRQ(TimerHandle_t xTimer);
void setSendIRQ(void); void setSendIRQ(void);
void initSendDataTimer(uint8_t sendcycle); void initSendDataTimer(uint8_t sendcycle);

View File

@ -70,7 +70,7 @@ PMUIRQ <- GPIO <- PMU chip
Application IRQs fired by software: Application IRQs fired by software:
TIMESYNC_IRQ <- setTimeSyncIRQ() <- Ticker.h TIMESYNC_IRQ <- setTimeSyncIRQ() <- Ticker.h
CYCLIC_IRQ <- setCyclicIRQ() <- Ticker.h CYCLIC_IRQ <- setCyclicIRQ() <- Ticker.h
SENDCYCLE_IRQ <- setSendIRQ() <- xTimer SENDCYCLE_IRQ <- setSendIRQ() <- xTimer or libpax callback
BME_IRQ <- setBMEIRQ() <- Ticker.h BME_IRQ <- setBMEIRQ() <- Ticker.h
*/ */

View File

@ -5,9 +5,7 @@ void setSendIRQ(TimerHandle_t xTimer) {
xTaskNotify(irqHandlerTask, SENDCYCLE_IRQ, eSetBits); xTaskNotify(irqHandlerTask, SENDCYCLE_IRQ, eSetBits);
} }
#if ((WIFICOUNTER) || (BLECOUNTER))
void setSendIRQ(void) { setSendIRQ(NULL); } void setSendIRQ(void) { setSendIRQ(NULL); }
#endif
void initSendDataTimer(uint8_t sendcycle) { void initSendDataTimer(uint8_t sendcycle) {
static TimerHandle_t SendDataTimer = NULL; static TimerHandle_t SendDataTimer = NULL;
@ -71,7 +69,7 @@ void SendPayload(uint8_t port) {
} // SendPayload } // SendPayload
// interrupt triggered function to prepare payload to send // timer triggered function to prepare payload to send
void sendData() { void sendData() {
uint8_t bitmask = cfg.payloadmask; uint8_t bitmask = cfg.payloadmask;