From dd9e265e4f718e7f5d5fa440f2b3d787ce4d1a2b Mon Sep 17 00:00:00 2001 From: DuffyDuck <52000341+Stinky80@users.noreply.github.com> Date: Sun, 31 Jul 2022 04:33:05 +0300 Subject: [PATCH] feat: Allow for Jumper T16 touchscreen mod using TX16S. #2060 for docs * add HARDWARE_TOUCH to T16 * cleared and corrected cleared and corrected * forced indication of rst forced indication of rst * Update hal.h * chore: Remove unnecessary T16 specific condition Only unique cases should be added, and the pre-existing ELSE already sets this value correctly. Co-authored-by: Peter Feerick --- radio/src/targets/horus/CMakeLists.txt | 1 + radio/src/targets/horus/hal.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/radio/src/targets/horus/CMakeLists.txt b/radio/src/targets/horus/CMakeLists.txt index 96aa64fb1..de861c55c 100644 --- a/radio/src/targets/horus/CMakeLists.txt +++ b/radio/src/targets/horus/CMakeLists.txt @@ -93,6 +93,7 @@ if (PCB STREQUAL X10) set(DEFAULT_INTERNAL_MODULE MULTIMODULE CACHE STRING "Default internal module") option(BLUETOOTH "Support for bluetooth module" OFF) option(INTERNAL_GPS "Support for internal NMEA GPS" ON) + set(HARDWARE_TOUCH YES) add_definitions(-DMANUFACTURER_JUMPER) if (NOT BLUETOOTH) set(AUX2_SERIAL ON) diff --git a/radio/src/targets/horus/hal.h b/radio/src/targets/horus/hal.h index de308a9ae..5c42a40a7 100644 --- a/radio/src/targets/horus/hal.h +++ b/radio/src/targets/horus/hal.h @@ -727,7 +727,7 @@ #endif // HARDWARE_TOUCH // First I2C Bus -#if defined(RADIO_T18) +#if defined(RADIO_T18) || defined(RADIO_T16) #define I2C_B1 I2C3 #define I2C_B1_GPIO GPIOH #define I2C_B1_SCL_GPIO_PIN LL_GPIO_PIN_7 // PH.07