chore(hal): streamline rotary encoder definitions (#2550)

This commit is contained in:
Raphael Coeffic
2022-11-15 19:13:54 +10:00
committed by GitHub
parent ab5d4f0e20
commit f7d7ec2070
3 changed files with 12 additions and 2 deletions
+6
View File
@@ -249,6 +249,12 @@
#define ROTARY_ENCODER_EXTI_PortSource EXTI_PortSourceGPIOE
#define ROTARY_ENCODER_EXTI_PinSource1 EXTI_PinSource9
#define ROTARY_ENCODER_EXTI_PinSource2 EXTI_PinSource10
#if defined(RADIO_TX12)
#define ROTARY_ENCODER_SUPPORT_BUGGY_WIRING
#endif
#if defined(RADIO_TX12MK2) || defined(RADIO_ZORRO)
#define ROTARY_ENCODER_INVERTED
#endif
#endif
#if defined(ROTARY_ENCODER_NAVIGATION)