d860ba1f34
- UiDensity moved to lvgl-module - Deleted tt_hal and tt_hal_gpio (breaks apps, but will fix those right after merging) - Added I2C 8 bit register operations - Added device.properties to simulator - Improved Tab5 hardware init, implement audio - Add README.md to kernel
25 lines
486 B
C++
25 lines
486 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <tactility/hal/Device.h>
|
|
#include <vector>
|
|
|
|
namespace tt::hal {
|
|
|
|
typedef bool (*InitBoot)();
|
|
|
|
typedef std::vector<std::shared_ptr<Device>> DeviceVector;
|
|
|
|
typedef std::shared_ptr<Device> (*CreateDevice)();
|
|
|
|
struct Configuration {
|
|
/**
|
|
* Used for powering on the peripherals manually.
|
|
*/
|
|
const InitBoot initBoot = nullptr;
|
|
|
|
const std::function<DeviceVector()> createDevices = [] { return DeviceVector(); };
|
|
};
|
|
|
|
} // namespace
|