Fixes and improvements

This commit is contained in:
Ken Van Hoeylandt 2026-07-13 23:58:14 +02:00
parent d2889b2d3d
commit 49af1d42f8
4 changed files with 15 additions and 1 deletions

View File

@ -1,6 +1,9 @@
// SPDX-License-Identifier: Apache-2.0
#pragma once
#include <soc/soc_caps.h>
#if SOC_LCD_I80_SUPPORTED
#include <tactility/drivers/i8080_controller.h>
#include <tactility/drivers/gpio.h>
@ -53,3 +56,5 @@ error_t esp32_i8080_get_bus_handle(struct Device* child_device, esp_lcd_i80_bus_
#ifdef __cplusplus
}
#endif
#endif // SOC_LCD_I80_SUPPORTED

View File

@ -1,4 +1,7 @@
// SPDX-License-Identifier: Apache-2.0
#include <soc/soc_caps.h>
#if SOC_LCD_I80_SUPPORTED
#include <tactility/device.h>
#include <tactility/drivers/esp32_i8080.h>
#include <tactility/log.h>
@ -130,6 +133,8 @@ static error_t start(Device* device) {
gpio_descriptor_set_flags(desc, GPIO_FLAG_DIRECTION_OUTPUT);
gpio_descriptor_set_level(desc, true);
data->cs_descriptors.push_back(desc);
} else {
LOG_E(TAG, "Failed to acquire CS pin %u", i);
}
}
@ -183,3 +188,5 @@ Driver esp32_i8080_driver = {
};
} // extern "C"
#endif // SOC_LCD_I80_SUPPORTED

View File

@ -1,6 +1,8 @@
#pragma once
#ifdef ESP_PLATFORM
#include <sdkconfig.h>
#endif
#if defined(CONFIG_TT_TOUCH_CALIBRATION_SUPPORTED)

View File

@ -12,7 +12,7 @@
#define GET_CONFIG(device) (static_cast<const GpioHogConfig*>((device)->config))
namespace {
const struct DeviceType GPIO_HOG_TYPE { .name = "gpio_hog" };
const DeviceType GPIO_HOG_TYPE { .name = "gpio_hog" };
}
static error_t start(Device* device) {