Cleanup headers

This commit is contained in:
fvanroie 2021-05-01 04:24:13 +02:00
parent 4ce87562df
commit a546ac2f4a
10 changed files with 21 additions and 33 deletions

View File

@ -1,6 +1,10 @@
/* MIT License - Copyright (c) 2019-2021 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#include "hasplib.h"
#include "lv_theme_hasp.h"
#include "dev/device.h"
#ifdef ARDUINO
#include "ArduinoLog.h"
#endif
@ -15,9 +19,6 @@
#include "StreamUtils.h" // For EEPromStream
#endif
#include "hasplib.h"
#include "lv_theme_hasp.h"
#if HASP_USE_DEBUG > 0
#include "../hasp_debug.h"
#endif
@ -29,8 +30,6 @@
//#include "hasp_filesystem.h" included in hasp_conf.h
#endif
#include "dev/device.h"
#if HASP_USE_EEPROM > 0
#include "EEPROM.h"
#endif

View File

@ -3,13 +3,12 @@
#if HASP_USE_CONFIG > 0
#include "StreamUtils.h" // For EEPromStream
#include "hasplib.h"
#include "hasp_config.h"
#include "hasp_debug.h"
#include "hasp_gui.h"
#include "hal/hasp_hal.h"
//#include "hasp_ota.h" included in conf
//#include "hasp_filesystem.h" included in conf
@ -22,6 +21,8 @@
#include "EEPROM.h"
#endif
#include "StreamUtils.h" // For EEPromStream
extern uint16_t dispatchTelePeriod;
extern uint32_t dispatchLastMillis;

View File

@ -6,8 +6,7 @@
#ifndef HASP_CONFIG_H
#define HASP_CONFIG_H
#include "hasp_conf.h"
#include "ArduinoJson.h"
#include "hasplib.h"
#include "hasp_debug.h" // for TAG_CONF
/* ===== Default Event Processors ===== */

View File

@ -1,15 +1,12 @@
/* MIT License - Copyright (c) 2019-2021 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#include "ArduinoJson.h"
#include "lvgl.h"
#include "hasplib.h"
#include <sys/time.h>
#include "lang/lang.h"
#include "hasp_conf.h"
#include "hasp_debug.h"
#include "hasp_macro.h"
#include "hasp/hasp.h"
#if(!defined(WINDOWS)) && (!defined(POSIX))
#include "ArduinoLog.h"

View File

@ -4,8 +4,7 @@
#ifndef HASP_GUI_H
#define HASP_GUI_H
#include "ArduinoJson.h"
#include "lvgl.h"
#include "hasplib.h"
struct gui_conf_t
{

View File

@ -1,3 +1,7 @@
#ifdef ARDUINO
#include <Arduino.h>
#endif
#include <cstdlib>
#include <cctype>
#include <string>

View File

@ -2,9 +2,8 @@
For full license information read the LICENSE file in the project folder */
//#include "webServer.h"
#include "ArduinoJson.h"
#include "hasplib.h"
#include "ArduinoLog.h"
#include "lvgl.h"
#if defined(ARDUINO_ARCH_ESP32)
#include "Update.h"
@ -12,16 +11,11 @@
#include "hasp_conf.h"
#include "dev/device.h"
#include "hasp_gui.h"
#include "hasp/hasp_dispatch.h"
#include "hasp_debug.h"
#include "hasp_config.h"
#include "hal/hasp_hal.h"
#include "hasp/hasp_dispatch.h"
#include "hasp/hasp_page.h"
#include "hasp/hasp.h"
#include "hasp_gui.h"
#include "hasp_debug.h"
#include "hasp_config.h"
#if HASP_USE_HTTP > 0

View File

@ -1,17 +1,14 @@
/* MIT License - Copyright (c) 2019-2021 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#include "hasp_conf.h"
#include "hasplib.h"
#if HASP_USE_TASMOTA_CLIENT > 0
#include "hasp_slave.h"
#include "ArduinoJson.h"
#include "hasp_dispatch.h"
#include "hasp_gui.h"
#include "hasp_hal.h"
#include "hasp_config.h"
#include "hasp.h"
#include "tasmotaSlave.h"
// set RX and TX pins

View File

@ -1,11 +1,10 @@
/* MIT License - Copyright (c) 2019-2021 Francis Van Roie
For full license information read the LICENSE file in the project folder */
#include "hasp_conf.h"
#include "hasplib.h"
#if HASP_USE_TELNET > 0
#include "ArduinoJson.h"
#include "ConsoleInput.h"
#include "hasp_debug.h"

View File

@ -6,8 +6,7 @@
#if HASP_USE_TELNET > 0
#include "hasp_conf.h"
#include "ArduinoJson.h"
#include "hasplib.h"
/* ===== Default Event Processors ===== */
void telnetSetup();