Project restructuring (fixes macOS builds) (#198)

- Create `Include/` folder for all main projects
- Fix some issues here and there (found while moving things)
- All includes are now in `Tactility/` subfolder and must be included with that prefix. This fixes issues with clashing POSIX headers (e.g. `<semaphore.h>` versus Tactility's `Semaphore.h`)
This commit is contained in:
Ken Van Hoeylandt
2025-02-01 18:13:20 +01:00
committed by GitHub
parent 7856827ecf
commit c87200a80d
350 changed files with 967 additions and 870 deletions
@@ -1,17 +1,17 @@
#include "TdeckDisplay.h"
#include "TdeckDisplayConstants.h"
#include "TdeckTouch.h"
#include "Log.h"
#include <TactilityCore.h>
#include <Tactility/Log.h>
#include <Tactility/TactilityCore.h>
#include <esp_lcd_panel_commands.h>
#include "driver/ledc.h"
#include "driver/spi_master.h"
#include "esp_err.h"
#include "esp_lcd_panel_ops.h"
#include "esp_lcd_panel_vendor.h"
#include "esp_lvgl_port.h"
#include <driver/ledc.h>
#include <driver/spi_master.h>
#include <esp_err.h>
#include <esp_lcd_panel_ops.h>
#include <esp_lcd_panel_vendor.h>
#include <esp_lvgl_port.h>
#define TAG "tdeck_display"
+2 -2
View File
@@ -1,8 +1,8 @@
#pragma once
#include <esp_lcd_types.h>
#include "lvgl.h"
#include "hal/Display.h"
#include <lvgl.h>
#include <Tactility/hal/Display.h>
extern lv_disp_t* displayHandle;
@@ -1,5 +1,5 @@
#include "TdeckKeyboard.h"
#include "hal/i2c/I2c.h"
#include <Tactility/hal/i2c/I2c.h>
#include <driver/i2c.h>
#define TAG "tdeck_keyboard"
@@ -1,9 +1,9 @@
#pragma once
#include "hal/Keyboard.h"
#include <TactilityCore.h>
#include "esp_lcd_panel_io_interface.h"
#include "esp_lcd_touch.h"
#include <Tactility/hal/Keyboard.h>
#include <Tactility/TactilityCore.h>
#include <esp_lcd_panel_io_interface.h>
#include <esp_lcd_touch.h>
class TdeckKeyboard : public tt::hal::Keyboard {
private:
+1 -2
View File
@@ -1,7 +1,6 @@
#include "TdeckPower.h"
#include "Log.h"
#include "CoreDefines.h"
#include <Tactility/Log.h>
#define TAG "power"
+1 -1
View File
@@ -1,6 +1,6 @@
#pragma once
#include "hal/Power.h"
#include <Tactility/hal/Power.h>
#include <esp_adc/adc_oneshot.h>
#include <memory>
@@ -1,10 +1,9 @@
#include "TdeckSdCard.h"
#include "lvgl/LvglSync.h"
#include "hal/SpiSdCard.h"
#include <Tactility/lvgl/LvglSync.h>
#include <Tactility/hal/SpiSdCard.h>
#include <esp_vfs_fat.h>
#include <sdmmc_cmd.h>
#define TDECK_SDCARD_PIN_CS GPIO_NUM_39
#define TDECK_LCD_PIN_CS GPIO_NUM_12
+1 -1
View File
@@ -1,6 +1,6 @@
#pragma once
#include "hal/SdCard.h"
#include <Tactility/hal/SdCard.h>
using namespace tt::hal;
+4 -4
View File
@@ -1,9 +1,9 @@
#include "TdeckTouch.h"
#include "esp_err.h"
#include "esp_lcd_touch_gt911.h"
#include "Log.h"
#include "esp_lvgl_port.h"
#include <esp_err.h>
#include <esp_lcd_touch_gt911.h>
#include <Tactility/Log.h>
#include <esp_lvgl_port.h>
#define TAG "tdeck_touch"
+4 -4
View File
@@ -1,9 +1,9 @@
#pragma once
#include "hal/Touch.h"
#include "TactilityCore.h"
#include "esp_lcd_panel_io_interface.h"
#include "esp_lcd_touch.h"
#include <Tactility/hal/Touch.h>
#include <Tactility/TactilityCore.h>
#include <esp_lcd_panel_io_interface.h>
#include <esp_lcd_touch.h>
class TdeckTouch : public tt::hal::Touch {
private: