mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Add kernel support for SPI driver - Add kernel support for UART driver - Implemented ESP32 UART kernel driver - Update existing UART-related code in Tactility to use new kernel driver - Remove UART from tt::hal::Configuration - Remove tt_hal_uart functionality but keep functions for now - Update devicetrees for UART changes - Kernel mutex and recursive mutex: improved locking API design - Other kernel improvements - Added device_exists_of_type() and device_find_by_name()
26 lines
627 B
C++
26 lines
627 B
C++
#include "hal/SdlDisplay.h"
|
|
#include "hal/SdlKeyboard.h"
|
|
#include "hal/SimulatorPower.h"
|
|
#include "hal/SimulatorSdCard.h"
|
|
|
|
#include <src/lv_init.h> // LVGL
|
|
#include <Tactility/hal/Configuration.h>
|
|
|
|
#define TAG "hardware"
|
|
|
|
using namespace tt::hal;
|
|
|
|
static std::vector<std::shared_ptr<tt::hal::Device>> createDevices() {
|
|
return {
|
|
std::make_shared<SdlDisplay>(),
|
|
std::make_shared<SdlKeyboard>(),
|
|
std::make_shared<SimulatorPower>(),
|
|
std::make_shared<SimulatorSdCard>()
|
|
};
|
|
}
|
|
|
|
extern const Configuration hardwareConfiguration = {
|
|
.initBoot = nullptr,
|
|
.createDevices = createDevices
|
|
};
|