Safe Sprinkler
Master/slave irrigation system (ESP-NOW + LoRaWAN)
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
timer_handler.h File Reference
#include "main_master.h"
#include "master/master_event.h"
#include <freertos/FreeRTOS.h>
#include <freertos/task.h>
#include <master/sc_types.h>
Include dependency graph for timer_handler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  timer_entry_t
 

Macros

#define MASTER_MAX_TIMERS   3
 

Functions

void timer_init (void)
 Initialize the timer handler for the master statechart.
 

Macro Definition Documentation

◆ MASTER_MAX_TIMERS

#define MASTER_MAX_TIMERS   3

Function Documentation

◆ timer_init()

void timer_init ( void  )

Initialize the timer handler for the master statechart.

Clears internal timer slots. Call once at startup before starting the state machine. Timers are created/removed by master_statechart_set_timer / master_statechart_unset_timer.