mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
arm/stm32h7: Add STM32H7_USART3_GPIO_*
This commit is contained in:
@@ -31,11 +31,13 @@
|
|||||||
|
|
||||||
#include <stm32h7/hal.h>
|
#include <stm32h7/hal.h>
|
||||||
|
|
||||||
|
#include <bspopts.h>
|
||||||
|
|
||||||
const stm32h7_uart_config stm32h7_usart3_config = {
|
const stm32h7_uart_config stm32h7_usart3_config = {
|
||||||
.gpio = {
|
.gpio = {
|
||||||
.regs = GPIOB,
|
.regs = STM32H7_USART3_GPIO_REGS,
|
||||||
.config = {
|
.config = {
|
||||||
.Pin = GPIO_PIN_9 | GPIO_PIN_10,
|
.Pin = STM32H7_USART3_GPIO_PINS,
|
||||||
.Mode = GPIO_MODE_AF_PP,
|
.Mode = GPIO_MODE_AF_PP,
|
||||||
.Pull = GPIO_NOPULL,
|
.Pull = GPIO_NOPULL,
|
||||||
.Speed = GPIO_SPEED_FREQ_LOW,
|
.Speed = GPIO_SPEED_FREQ_LOW,
|
||||||
|
|||||||
@@ -77,6 +77,10 @@ links:
|
|||||||
uid: optmemsrambackupsz
|
uid: optmemsrambackupsz
|
||||||
- role: build-dependency
|
- role: build-dependency
|
||||||
uid: optprintkinstance
|
uid: optprintkinstance
|
||||||
|
- role: build-dependency
|
||||||
|
uid: optusart3gpiopins
|
||||||
|
- role: build-dependency
|
||||||
|
uid: optusart3gpioregs
|
||||||
- role: build-dependency
|
- role: build-dependency
|
||||||
uid: optvariant
|
uid: optvariant
|
||||||
- role: build-dependency
|
- role: build-dependency
|
||||||
|
|||||||
20
spec/build/bsps/arm/stm32h7/optusart3gpiopins.yml
Normal file
20
spec/build/bsps/arm/stm32h7/optusart3gpiopins.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
actions:
|
||||||
|
- get-string: null
|
||||||
|
- define-unquoted: null
|
||||||
|
build-type: option
|
||||||
|
default: ( GPIO_PIN_8 | GPIO_PIN_9 )
|
||||||
|
default-by-variant:
|
||||||
|
- value: ( GPIO_PIN_9 | GPIO_PIN_10 )
|
||||||
|
variants:
|
||||||
|
- arm/nucleo-h743zi
|
||||||
|
default-by-variant: []
|
||||||
|
enabled-by: true
|
||||||
|
format: '{}'
|
||||||
|
links: []
|
||||||
|
name: STM32H7_USART3_GPIO_PINS
|
||||||
|
description: |
|
||||||
|
GPIO pins used for the USART3 pin configuration.
|
||||||
|
type: build
|
||||||
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||||
|
copyrights:
|
||||||
|
- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
|
||||||
20
spec/build/bsps/arm/stm32h7/optusart3gpioregs.yml
Normal file
20
spec/build/bsps/arm/stm32h7/optusart3gpioregs.yml
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
actions:
|
||||||
|
- get-string: null
|
||||||
|
- define-unquoted: null
|
||||||
|
build-type: option
|
||||||
|
default: GPIOD
|
||||||
|
default-by-variant:
|
||||||
|
- value: GPIOB
|
||||||
|
variants:
|
||||||
|
- arm/nucleo-h743zi
|
||||||
|
default-by-variant: []
|
||||||
|
enabled-by: true
|
||||||
|
format: '{}'
|
||||||
|
links: []
|
||||||
|
name: STM32H7_USART3_GPIO_REGS
|
||||||
|
description: |
|
||||||
|
GPIO registers used for the USART3 pin configuration.
|
||||||
|
type: build
|
||||||
|
SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
|
||||||
|
copyrights:
|
||||||
|
- Copyright (C) 2021 embedded brains GmbH (http://www.embedded-brains.de)
|
||||||
Reference in New Issue
Block a user