From 75fe828e214733a36907f3f99ae1e96730993f4f Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Sun, 4 Sep 2016 16:32:15 +0200 Subject: [PATCH] [X9D+] SH was not working anymore --- radio/src/targets/taranis/hal.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/radio/src/targets/taranis/hal.h b/radio/src/targets/taranis/hal.h index 7e7f6ad24..32fe7da19 100644 --- a/radio/src/targets/taranis/hal.h +++ b/radio/src/targets/taranis/hal.h @@ -210,11 +210,12 @@ #if defined(PCBX9E) #define SWITCHES_GPIO_REG_H GPIOF->IDR #define SWITCHES_GPIO_PIN_H GPIO_Pin_1 // PF.01 +#elif defined(PCBX9DP) + #define SWITCHES_GPIO_REG_H GPIOD->IDR + #define SWITCHES_GPIO_PIN_H GPIO_Pin_14 // PD.14 #elif defined(PCBX7D) - #define SWITCHES_GPIO_REG_H GPIOE->IDR - #define SWITCHES_GPIO_PIN_H GPIO_Pin_15 // PE.15 - // #define SWITCHES_GPIO_REG_H_L GPIOA->IDR - // #define SWITCHES_GPIO_PIN_H_L GPIO_Pin_5 // PA.05 + #define SWITCHES_GPIO_REG_H GPIOE->IDR + #define SWITCHES_GPIO_PIN_H GPIO_Pin_15 // PE.15 #else #define SWITCHES_GPIO_REG_H GPIOE->IDR #define SWITCHES_GPIO_PIN_H GPIO_Pin_13 // PE.13