mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-23 06:56:24 +00:00
Add support for the ST STM32G0316-DISCO development board. This board features an ST STM32G031J6 MCU on a breakable SO8 to DIL8 module, a user LED and a button. Signed-off-by: Filip Brozovic <fbrozovic@gmail.com>
32 lines
1.0 KiB
C
32 lines
1.0 KiB
C
/*
|
|
* Copyright (c) 2019 Philippe Retornaz <philippe@shapescale.com>
|
|
* Copyright (c) 2019 ST Microelectronics
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef ZEPHYR_DRIVERS_PINMUX_STM32_PINMUX_STM32G0_H_
|
|
#define ZEPHYR_DRIVERS_PINMUX_STM32_PINMUX_STM32G0_H_
|
|
|
|
/**
|
|
* @file Header for STM32G0 pin multiplexing helper
|
|
*/
|
|
#define STM32G0_PINMUX_FUNC_PA2_USART2_TX \
|
|
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
|
#define STM32G0_PINMUX_FUNC_PA3_USART2_RX \
|
|
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUPDR_NO_PULL)
|
|
|
|
#define STM32G0_PINMUX_FUNC_PA9_USART1_TX \
|
|
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
|
#define STM32G0_PINMUX_FUNC_PB6_USART1_TX \
|
|
(STM32_PINMUX_ALT_FUNC_0 | STM32_PUSHPULL_NOPULL)
|
|
#define STM32G0_PINMUX_FUNC_PB7_USART1_RX \
|
|
(STM32_PINMUX_ALT_FUNC_0 | STM32_PUPDR_NO_PULL)
|
|
#define STM32G0_PINMUX_FUNC_PB6_USART1_TX_RX \
|
|
(STM32_PINMUX_ALT_FUNC_0 | STM32_OPENDRAIN_PULLUP)
|
|
|
|
#define STM32G0_PINMUX_FUNC_PA7_TIM3_CH2 \
|
|
(STM32_PINMUX_ALT_FUNC_1 | STM32_PUSHPULL_NOPULL)
|
|
|
|
#endif /* ZEPHYR_DRIVERS_PINMUX_STM32_PINMUX_STM32G0_H_ */
|