make senddatatimer global
This commit is contained in:
parent
c07ca14e20
commit
cbdad346ca
@ -4,6 +4,8 @@
|
|||||||
// Local logging tag
|
// Local logging tag
|
||||||
static const char TAG[] = __FILE__;
|
static const char TAG[] = __FILE__;
|
||||||
|
|
||||||
|
TimerHandle_t SendDataTimer = NULL;
|
||||||
|
|
||||||
void setSendIRQ(TimerHandle_t xTimer) {
|
void setSendIRQ(TimerHandle_t xTimer) {
|
||||||
xTaskNotify(irqHandlerTask, SENDCYCLE_IRQ, eSetBits);
|
xTaskNotify(irqHandlerTask, SENDCYCLE_IRQ, eSetBits);
|
||||||
}
|
}
|
||||||
@ -11,8 +13,6 @@ void setSendIRQ(TimerHandle_t xTimer) {
|
|||||||
void setSendIRQ(void) { setSendIRQ(NULL); }
|
void setSendIRQ(void) { setSendIRQ(NULL); }
|
||||||
|
|
||||||
void initSendDataTimer(uint8_t sendcycle) {
|
void initSendDataTimer(uint8_t sendcycle) {
|
||||||
static TimerHandle_t SendDataTimer = NULL;
|
|
||||||
|
|
||||||
if (SendDataTimer == NULL) {
|
if (SendDataTimer == NULL) {
|
||||||
SendDataTimer =
|
SendDataTimer =
|
||||||
xTimerCreate("SendDataTimer", pdMS_TO_TICKS(sendcycle * 1000), pdTRUE,
|
xTimerCreate("SendDataTimer", pdMS_TO_TICKS(sendcycle * 1000), pdTRUE,
|
||||||
|
Loading…
Reference in New Issue
Block a user