diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-05-29 16:25:30 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-05-29 16:25:30 +0200 |
commit | f81fa883c4bd2fbebf3a49459808863e4eeae27a (patch) | |
tree | 42ef2d79465735aa070295c67eeba7fae06f8af8 /src/stm32/consts.h | |
parent | dc44b9e243ad50900c0d692f884dcc673587581c (diff) |
add controller test and swap p1 and p2survival
Diffstat (limited to 'src/stm32/consts.h')
-rw-r--r-- | src/stm32/consts.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/src/stm32/consts.h b/src/stm32/consts.h index 16d8da2..795be6f 100644 --- a/src/stm32/consts.h +++ b/src/stm32/consts.h @@ -21,29 +21,29 @@ #define HH_IO_PPU_VBLANK_PORT GPIOC #define HH_IO_PPU_VBLANK_PIN GPIO_PIN_7 -#define HH_IO_GP1_UP_PORT GPIOB -#define HH_IO_GP1_UP_PIN GPIO_PIN_5 +#define HH_IO_GP1_UP_PORT GPIOC +#define HH_IO_GP1_UP_PIN GPIO_PIN_1 #define HH_IO_GP1_DOWN_PORT GPIOA -#define HH_IO_GP1_DOWN_PIN GPIO_PIN_3 +#define HH_IO_GP1_DOWN_PIN GPIO_PIN_0 #define HH_IO_GP1_LEFT_PORT GPIOB -#define HH_IO_GP1_LEFT_PIN GPIO_PIN_3 -#define HH_IO_GP1_RIGHT_PORT GPIOB -#define HH_IO_GP1_RIGHT_PIN GPIO_PIN_4 +#define HH_IO_GP1_LEFT_PIN GPIO_PIN_0 #define HH_IO_GP1_PRIMARY_PORT GPIOA -#define HH_IO_GP1_PRIMARY_PIN GPIO_PIN_10 +#define HH_IO_GP1_PRIMARY_PIN GPIO_PIN_4 +#define HH_IO_GP1_RIGHT_PORT GPIOC +#define HH_IO_GP1_RIGHT_PIN GPIO_PIN_0 #define HH_IO_GP1_SECONDARY_PORT GPIOA -#define HH_IO_GP1_SECONDARY_PIN GPIO_PIN_2 +#define HH_IO_GP1_SECONDARY_PIN GPIO_PIN_1 -#define HH_IO_GP2_UP_PORT GPIOC -#define HH_IO_GP2_UP_PIN GPIO_PIN_1 +#define HH_IO_GP2_UP_PORT GPIOB +#define HH_IO_GP2_UP_PIN GPIO_PIN_5 #define HH_IO_GP2_DOWN_PORT GPIOA -#define HH_IO_GP2_DOWN_PIN GPIO_PIN_0 +#define HH_IO_GP2_DOWN_PIN GPIO_PIN_3 #define HH_IO_GP2_LEFT_PORT GPIOB -#define HH_IO_GP2_LEFT_PIN GPIO_PIN_0 -#define HH_IO_GP2_PRIMARY_PORT GPIOC -#define HH_IO_GP2_PRIMARY_PIN GPIO_PIN_0 -#define HH_IO_GP2_RIGHT_PORT GPIOA +#define HH_IO_GP2_LEFT_PIN GPIO_PIN_3 +#define HH_IO_GP2_RIGHT_PORT GPIOB #define HH_IO_GP2_RIGHT_PIN GPIO_PIN_4 +#define HH_IO_GP2_PRIMARY_PORT GPIOA +#define HH_IO_GP2_PRIMARY_PIN GPIO_PIN_10 #define HH_IO_GP2_SECONDARY_PORT GPIOA -#define HH_IO_GP2_SECONDARY_PIN GPIO_PIN_1 +#define HH_IO_GP2_SECONDARY_PIN GPIO_PIN_2 |