|
1 /** |
|
2 * @file dcf77tx.h |
|
3 */ |
|
4 |
|
5 #ifndef _DCF77TX_H |
|
6 #define _DCF77TX_H |
|
7 |
|
8 #include <stdio.h> |
|
9 #include <stdlib.h> |
|
10 #include <string.h> |
|
11 #include <stdbool.h> |
|
12 #include <time.h> |
|
13 #include <errno.h> |
|
14 #include <sys/unistd.h> |
|
15 #include <sys/fcntl.h> |
|
16 #include <sys/time.h> |
|
17 |
|
18 #include "freertos/FreeRTOS.h" |
|
19 #include "freertos/task.h" |
|
20 #include "freertos/semphr.h" |
|
21 #include "freertos/event_groups.h" |
|
22 #include "freertos/queue.h" |
|
23 #include "driver/gpio.h" |
|
24 //#include "driver/rtc_io.h" |
|
25 //#include "soc/rtc.h" |
|
26 #include "esp_log.h" |
|
27 #include "esp_system.h" |
|
28 #include "esp_mac.h" |
|
29 #include "esp_wifi.h" |
|
30 #include "esp_wpa2.h" |
|
31 #include "esp_netif_sntp.h" |
|
32 #include "esp_sntp.h" |
|
33 #include "nvs_flash.h" |
|
34 |
|
35 |
|
36 #include "task_wifi.h" |
|
37 |
|
38 |
|
39 typedef enum { |
|
40 ML_INIT = 0, ///< Init fase |
|
41 ML_CONNECT, ///< Connect WiFi |
|
42 ML_SYNC, ///< Wait for start of a minute |
|
43 ML_RUN ///< Run transmitter |
|
44 } ML; |
|
45 |
|
46 |
|
47 #endif |