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
+6 -5
View File
@@ -1,10 +1,11 @@
#ifdef ESP_PLATFORM
#include <Log.h>
#include "Usb.h"
#include "UsbTusb.h"
#include "TactilityHeadless.h"
#include "hal/SpiSdCard.h"
#include "Tactility/hal/usb/Usb.h"
#include "Tactility/hal/usb/UsbTusb.h"
#include "Tactility/hal/SpiSdCard.h"
#include "Tactility/TactilityHeadless.h"
#include <Tactility/Log.h>
namespace tt::hal::usb {
-21
View File
@@ -1,21 +0,0 @@
#pragma once
namespace tt::hal::usb {
enum class Mode {
Default, // Default state of USB stack
None, // State after TinyUSB was used and (partially) deinitialized
MassStorageSdmmc
};
bool startMassStorageWithSdmmc();
void stop();
Mode getMode();
bool isSupported();
bool canRebootIntoMassStorageSdmmc();
void rebootIntoMassStorageSdmmc();
bool isUsbBootMode();
void resetUsbBootMode();
}
+1 -1
View File
@@ -1,6 +1,6 @@
#ifndef ESP_PLATFORM
#include "Usb.h"
#include "Tactility/hal/usb/Usb.h"
#define TAG "usb"
+6 -5
View File
@@ -1,13 +1,14 @@
#ifdef ESP_PLATFORM
#include "UsbTusb.h"
#include "sdkconfig.h"
#include "Tactility/hal/usb/UsbTusb.h"
#include <sdkconfig.h>
#if CONFIG_TINYUSB_MSC_ENABLED == 1
#include "Log.h"
#include "tinyusb.h"
#include "tusb_msc_storage.h"
#include <Tactility/Log.h>
#include <tinyusb.h>
#include <tusb_msc_storage.h>
#define TAG "usb"
#define EPNUM_MSC 1
@@ -1,5 +0,0 @@
#pragma once
bool tusbIsSupported();
bool tusbStartMassStorageWithSdmmc();
void tusbStop();