18 lines
326 B
C
18 lines
326 B
C
// scheduler_events.h
|
|
#pragma once
|
|
#include "esp_event.h"
|
|
#include <stdbool.h>
|
|
|
|
ESP_EVENT_DECLARE_BASE(SCHED_EVENTS);
|
|
|
|
typedef enum
|
|
{
|
|
SCHED_EVENT_INIT = 0, // envia estado inicial
|
|
SCHED_EVENT_WINDOW_CHANGED, // allowed_now mudou
|
|
} sched_event_id_t;
|
|
|
|
typedef struct
|
|
{
|
|
bool allowed_now;
|
|
} sched_event_state_t;
|