[roll pigweed] pw_sys_io_stm32cube: Extend hardware support
Extends support for more hardware by supporting the following:
- Uarts where tx and rx pins are on different ports.
- Peripherals that are UARTs, not USARTs.
Adds the following new config options which default to
PW_SYS_IO_STM32CUBE_GPIO_PORT for backwards compatibility:
- PW_SYS_IO_STM32CUBE_GPIO_TX_PORT
- PW_SYS_IO_STM32CUBE_GPIO_RX_PORT
Adds the following new config option which default to USART:
- PW_SYS_IO_STM32CUBE_USART_PREFIX
For example, this was useful with the following config on an STM32H7:
PW_SYS_IO_STM32CUBE_GPIO_AF=8
PW_SYS_IO_STM32CUBE_USART_NUM=5
PW_SYS_IO_STM32CUBE_GPIO_TX_PORT=C
PW_SYS_IO_STM32CUBE_GPIO_TX_PIN=12
PW_SYS_IO_STM32CUBE_GPIO_RX_PORT=D
PW_SYS_IO_STM32CUBE_GPIO_RX_PIN=2
PW_SYS_IO_STM32CUBE_USART_PREFIX=UART
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/105540
https://pigweed.googlesource.com/pigweed/pigweed
pigweed Rolled-Commits: a0c03df8a82aa05..eecf63ba84ce44d
Roller-URL: https://ci.chromium.org/b/8806272907779530897
Cq-Cl-Tag: roller-builder:pigweed-zephyr-roller
Cq-Cl-Tag: roller-bid:8806272907779530897
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I357808030d8ba2619ba92c850e5265956ec1714a
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/zephyr-integration/+/105619
Bot-Commit: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
Commit-Queue: Pigweed Integration Roller <pigweed-integration-roller@pigweed.google.com.iam.gserviceaccount.com>
1 file changed