From 21de55e55067503e529d2092b803b38f5776121d Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 10 Mar 2013 21:08:37 +0000 Subject: [PATCH] [X9D] REV3 switches assignation (regression) --- src/x9d/hal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/x9d/hal.h b/src/x9d/hal.h index 1df5a9792..f17bba95b 100644 --- a/src/x9d/hal.h +++ b/src/x9d/hal.h @@ -76,8 +76,8 @@ #endif #if defined(REV3) - #define GPIO_PIN_SW_G_H GPIOA->IDR - #define GPIO_PIN_SW_G_L GPIOB->IDR + #define GPIO_PIN_SW_G_H (~GPIOA->IDR) + #define GPIO_PIN_SW_G_L (~GPIOB->IDR) #define PIN_SW_G_H GPIO_Pin_5 //PA.05 #define PIN_SW_G_L GPIO_Pin_0 //PB.00 #else @@ -88,8 +88,8 @@ #endif #if defined(REV3) - #define GPIO_PIN_SW_C_H GPIOB->IDR - #define GPIO_PIN_SW_C_L GPIOE->IDR + #define GPIO_PIN_SW_C_H (~GPIOB->IDR) + #define GPIO_PIN_SW_C_L (~GPIOE->IDR) #define PIN_SW_C_H GPIO_Pin_1 //PB.01 #define PIN_SW_C_L GPIO_Pin_7 //PE.07 #else