arm/stm32h7: Add STM32H7_USART3_GPIO_*

This commit is contained in:
Sebastian Huber
2021-04-06 09:56:41 +02:00
parent 6bb6b69bb6
commit 05cd707d28
4 changed files with 48 additions and 2 deletions

View File

@@ -31,11 +31,13 @@
#include <stm32h7/hal.h>
#include <bspopts.h>
const stm32h7_uart_config stm32h7_usart3_config = {
.gpio = {
.regs = GPIOB,
.regs = STM32H7_USART3_GPIO_REGS,
.config = {
.Pin = GPIO_PIN_9 | GPIO_PIN_10,
.Pin = STM32H7_USART3_GPIO_PINS,
.Mode = GPIO_MODE_AF_PP,
.Pull = GPIO_NOPULL,
.Speed = GPIO_SPEED_FREQ_LOW,

View File

@@ -77,6 +77,10 @@ links:
uid: optmemsrambackupsz
- role: build-dependency
uid: optprintkinstance
- role: build-dependency
uid: optusart3gpiopins
- role: build-dependency
uid: optusart3gpioregs
- role: build-dependency
uid: optvariant
- role: build-dependency

View 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)

View 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)