Safe Sprinkler
Master/slave irrigation system (ESP-NOW + LoRaWAN)
Loading...
Searching...
No Matches
include
master
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
16
#include "
general/location_server.h
"
17
#include "
general/node_cfg.h
"
18
19
// Master specific Headers
20
#include "
master/config_serializer.h
"
21
#include "
master/esp_wireless_handler.h
"
22
#include "
master/fifo.h
"
23
#include "
master/lorawan_handler.h
"
24
#include "
master/master_event.h
"
25
#include "master/master_statechart.h"
26
#include "
master/timer_handler.h
"
27
28
#define DEBOUNCE_DELAY 50000
29
30
#define WATCHDOG_TIME_THRESHOLD 1000000000
31
32
extern
fifo_t
message_fifo
;
33
extern
fifo_t
lora_fifo
;
34
35
extern
Master_statechart
sc
;
36
37
extern
QueueHandle_t
master_event_queue
;
38
39
extern
slave_data
s_data
[
MAX_SLAVE_NUM
];
40
extern
uint8_t
configured_moisture
;
41
#endif
// MAIN_MASTER_H
config_serializer.h
esp_wireless_handler.h
fifo.h
location_server.h
lorawan_handler.h
s_data
slave_data s_data[MAX_SLAVE_NUM]
sc
Master_statechart sc
message_fifo
fifo_t message_fifo
lora_fifo
fifo_t lora_fifo
configured_moisture
uint8_t configured_moisture
master_event_queue
QueueHandle_t master_event_queue
master_event.h
node_cfg.h
MAX_SLAVE_NUM
#define MAX_SLAVE_NUM
Definition
node_cfg.h:10
fifo_t
Definition
fifo.h:10
slave_data
Definition
node_cfg.h:16
timer_handler.h
Generated by
1.9.8