diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-11 19:16:26 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-11 19:16:26 +0200 |
commit | b455848ee62b06ba73801cff477c6ff214c4053e (patch) | |
tree | d23dcf59e7d485b94a90ed79ae459bd6cdad4a83 /stm32f091/setup.h | |
parent | acb25f74631597b2b24dca2c16da9dbb9ed2ecb1 (diff) |
stm32 esp code merged
Diffstat (limited to 'stm32f091/setup.h')
-rw-r--r-- | stm32f091/setup.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/stm32f091/setup.h b/stm32f091/setup.h index 713ed58..8ca3720 100644 --- a/stm32f091/setup.h +++ b/stm32f091/setup.h @@ -8,12 +8,19 @@ #define WS_PINOUT_I2C_SDA_PORT GPIOB #define WS_PINOUT_I2C_SCL_PIN GPIO_PIN_8 #define WS_PINOUT_I2C_SCL_PORT GPIOB -#define WS_PINOUT_USART_RX_PIN GPIO_PIN_3 -#define WS_PINOUT_USART_RX_PORT GPIOA -#define WS_PINOUT_USART_TX_PIN GPIO_PIN_2 -#define WS_PINOUT_USART_TX_PORT GPIOA + +#define WS_PINOUT_USART1_RX_PIN GPIO_PIN_10 +#define WS_PINOUT_USART1_RX_PORT GPIOA +#define WS_PINOUT_USART1_TX_PIN GPIO_PIN_9 +#define WS_PINOUT_USART1_TX_PORT GPIOA + +#define WS_PINOUT_USART2_RX_PIN GPIO_PIN_3 +#define WS_PINOUT_USART2_RX_PORT GPIOA +#define WS_PINOUT_USART2_TX_PIN GPIO_PIN_2 +#define WS_PINOUT_USART2_TX_PORT GPIOA extern I2C_HandleTypeDef hi2c1; +extern UART_HandleTypeDef huart1; extern UART_HandleTypeDef huart2; void ws_io_setup(); |