Safe Sprinkler
Master/slave irrigation system (ESP-NOW + LoRaWAN)
Loading...
Searching...
No Matches
timer_handler.h
Go to the documentation of this file.
1#ifndef TIMER_HANDLER_H
2#define TIMER_HANDLER_H
3
4#include "main_master.h"
6
7#include <freertos/FreeRTOS.h>
8#include <freertos/task.h>
9#include <master/sc_types.h>
10
11#define MASTER_MAX_TIMERS 3
12
13typedef struct
14{
15 TimerHandle_t timer;
16 sc_eventid evid;
18
26void timer_init(void);
27
28#endif // TIMER_HANDLER_H
Definition timer_handler.h:14
TimerHandle_t timer
Definition timer_handler.h:15
sc_eventid evid
Definition timer_handler.h:16
void timer_init(void)
Initialize the timer handler for the master statechart.