|
RCM — ESP32 Room Controller
WT32-ETH01 firmware
|
Точка входа прошивки OZLocks для платы WT32-ETH01. More...
#include "esp_log.h"#include "nvs_flash.h"#include "ethernet.h"#include "ds3231.h"#include "i2c_bus.h"#include "i2c_cmd_device.h"#include "modbus_app.h"Go to the source code of this file.
Functions | |
| void | app_main (void) |
| Главная функция приложения ESP-IDF. | |
Variables | |
| static const char * | TAG = "main" |
| Тег для сообщений ESP_LOG в этом модуле | |
Точка входа прошивки OZLocks для платы WT32-ETH01.
Плата WT32-ETH01 — ESP32 с встроенным Ethernet (PHY LAN8720A). После инициализации NVS запускается Ethernet-стек; веб-сервер поднимается автоматически при получении IP (см. ethernet.c).
Definition in file main.c.
| void app_main | ( | void | ) |
Главная функция приложения ESP-IDF.
Вызывается после загрузки FreeRTOS. Порядок инициализации:
Definition at line 29 of file main.c.
References ds3231_datetime_t::date, ds3231_get_temperature(), ds3231_get_time(), ds3231_init(), ds3231_is_oscillator_stopped(), ethernet_start(), ds3231_datetime_t::hour, i2c_bus_init(), i2c_cmd_device_init(), i2c_cmd_device_start(), ds3231_datetime_t::minute, modbus_app_start(), ds3231_datetime_t::month, ds3231_datetime_t::second, TAG, ds3231_datetime_t::weekday, and ds3231_datetime_t::year.
|
static |
Тег для сообщений ESP_LOG в этом модуле
Definition at line 19 of file main.c.
Referenced by app_main().