Safe Sprinkler
Master/slave irrigation system (ESP-NOW + LoRaWAN)
Loading...
Searching...
No Matches
main_master.h
Go to the documentation of this file.
1#ifndef MAIN_MASTER_H
2#define MAIN_MASTER_H
3
4#include "driver/gpio.h"
5#include "esp_err.h"
6#include "esp_log.h"
7#include "nvs_flash.h"
8
9#include <esp_timer.h>
10#include <freertos/FreeRTOS.h>
11#include <freertos/task.h>
12#include <stdio.h>
13#include <string.h>
14
15// General Headers
17#include "general/node_cfg.h"
18
19// Master specific Headers
22#include "master/fifo.h"
24#include "master/master_event.h"
25#include "master/master_statechart.h"
27
28#define DEBOUNCE_DELAY 50000
29
30#define WATCHDOG_TIME_THRESHOLD 1000000000
31
32extern fifo_t message_fifo;
33extern fifo_t lora_fifo;
34
35extern Master_statechart sc;
36
37extern QueueHandle_t master_event_queue;
38
40extern uint8_t configured_moisture;
41#endif // MAIN_MASTER_H
slave_data s_data[MAX_SLAVE_NUM]
Master_statechart sc
fifo_t message_fifo
fifo_t lora_fifo
uint8_t configured_moisture
QueueHandle_t master_event_queue
#define MAX_SLAVE_NUM
Definition node_cfg.h:10
Definition fifo.h:10
Definition node_cfg.h:16