59 lines
1.8 KiB
C
59 lines
1.8 KiB
C
/*
|
|
* Copyright (c) 2018 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#ifndef _STM32WBX_PINMUX_H_
|
|
#define _STM32WBX_PINMUX_H_
|
|
|
|
/**
|
|
* @file Header for STM32WBX pin multiplexing helper
|
|
*/
|
|
|
|
/* Port A */
|
|
#define STM32WBX_PINMUX_FUNC_PA2_LPUART1_TX \
|
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
|
#define STM32WBX_PINMUX_FUNC_PA3_LPUART1_RX \
|
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
|
#define STM32WBX_PINMUX_FUNC_PA9_USART1_TX \
|
|
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
|
#define STM32WBX_PINMUX_FUNC_PA10_USART1_RX \
|
|
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUPDR_NO_PULL)
|
|
#define STM32WBX_PINMUX_FUNC_PA12_LPUART1_RX \
|
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
|
|
|
/* Port B */
|
|
#define STM32WBX_PINMUX_FUNC_PB5_LPUART1_TX \
|
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
|
#define STM32WBX_PINMUX_FUNC_PB6_USART1_TX \
|
|
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUSHPULL_PULLUP)
|
|
#define STM32WBX_PINMUX_FUNC_PB7_USART1_RX \
|
|
(STM32_PINMUX_ALT_FUNC_7 | STM32_PUPDR_NO_PULL)
|
|
#define STM32WBX_PINMUX_FUNC_PB8_I2C1_SCL \
|
|
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
|
#define STM32WBX_PINMUX_FUNC_PB9_I2C1_SDA \
|
|
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
|
#define STM32WBX_PINMUX_FUNC_PB10_LPUART1_RX \
|
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
|
#define STM32WBX_PINMUX_FUNC_PB11_LPUART1_TX \
|
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
|
|
|
/* Port C */
|
|
#define STM32WBX_PINMUX_FUNC_PC0_LPUART1_RX \
|
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_NOPULL)
|
|
#define STM32WBX_PINMUX_FUNC_PC1_LPUART1_TX \
|
|
(STM32_PINMUX_ALT_FUNC_8 | STM32_PUSHPULL_PULLUP)
|
|
#define STM32WBX_PINMUX_FUNC_PC0_I2C3_SCL \
|
|
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
|
#define STM32WBX_PINMUX_FUNC_PC1_I2C3_SDA \
|
|
(STM32_PINMUX_ALT_FUNC_4 | STM32_OPENDRAIN_PULLUP)
|
|
|
|
/* Port D */
|
|
|
|
/* Port E */
|
|
|
|
/* Port H */
|
|
|
|
#endif /* _STM32WBX_PINMUX_H_ */
|