diff options
Diffstat (limited to 'src/stm32/consts.h')
-rw-r--r-- | src/stm32/consts.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/stm32/consts.h b/src/stm32/consts.h index 447e36e..16d8da2 100644 --- a/src/stm32/consts.h +++ b/src/stm32/consts.h @@ -3,12 +3,19 @@ #include <stm32f091xc.h> // ../../docs/hardware/pinout.md -#define HH_IO_SPI_PORT GPIOA -#define HH_IO_SPI_PINS (GPIO_PIN_5 | GPIO_PIN_7) +#define HH_IO_SPI_MOSI_PORT GPIOA +#define HH_IO_SPI_MOSI_PIN GPIO_PIN_7 +#define HH_IO_SPI_MISO_PORT GPIOA +#define HH_IO_SPI_MISO_PIN GPIO_PIN_6 +#define HH_IO_SPI_CLK_PORT GPIOA +#define HH_IO_SPI_CLK_PIN GPIO_PIN_5 #define HH_IO_SPI_SR_PORT GPIOA #define HH_IO_SPI_SR_PIN GPIO_PIN_9 +#define HH_IO_SPI_PORT GPIOA +#define HH_IO_SPI_PINS (HH_IO_SPI_CLK_PIN | HH_IO_SPI_MOSI_PIN | HH_IO_SPI_MISO_PIN) + #define HH_IO_PPU_HBLANK_PORT GPIOA #define HH_IO_PPU_HBLANK_PIN GPIO_PIN_8 #define HH_IO_PPU_VBLANK_PORT GPIOC |