feat(X12S): Add support for touch screen mod (#1779)

Adds support of RadioMaster TX16S touch screen on FrSky X12S radio.
This commit is contained in:
Wilhelm
2022-04-23 12:22:47 +02:00
committed by GitHub
parent 25254cc4be
commit 7a6d6239b5
4 changed files with 48 additions and 43 deletions
+4 -1
View File
@@ -699,8 +699,11 @@
#define TOUCH_RST_RCC_AHB1Periph RCC_AHB1Periph_GPIOF
#define TOUCH_RST_GPIO GPIOF
#if defined(PCBX12S)
#define TOUCH_RST_GPIO_PIN GPIO_Pin_7 // PF.7
#else
#define TOUCH_RST_GPIO_PIN GPIO_Pin_10 // PF.10
#endif
#define TOUCH_INT_EXTI_LINE1 EXTI_Line2
#define TOUCH_INT_EXTI_IRQn1 EXTI2_IRQn
#define TOUCH_INT_EXTI_IRQHandler1 EXTI2_IRQHandler