commit | eecf63ba84ce44d6f1426f40152d8adb17c54669 | [log] [tgz] |
---|---|---|
author | Tom Craig <tommycraig@gmail.com> | Tue Aug 09 21:31:30 2022 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Aug 09 21:31:30 2022 +0000 |
tree | 078a76dbb2b3b8b94c3ca5b53cee46e4b57ee745 | |
parent | a0c03df8a82aa05dcf498828d717098a901c0640 [diff] |
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 Change-Id: I9cbd2742dd2fc3ff031874f18dc80241e6c7675d Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/105540 Reviewed-by: Armando Montanez <amontanez@google.com> Pigweed-Auto-Submit: Armando Montanez <amontanez@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.