zephyr/drivers/pinmux/stm32/pinmux_stm32f3.h

43 lines
1.5 KiB
C
Raw Normal View History

/*
* Copyright (c) 2017 RnDity Sp. z o.o.
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _STM32F3_PINMUX_H_
#define _STM32F3_PINMUX_H_
/**
* @file Header for STM32F3 pin multiplexing helper
*/
#define STM32F3_PINMUX_FUNC_PA9_USART1_TX STM32_PINMUX_FUNC_ALT_7
#define STM32F3_PINMUX_FUNC_PA10_USART1_RX STM32_PINMUX_FUNC_ALT_7
#define STM32F3_PINMUX_FUNC_PA2_USART2_TX STM32_PINMUX_FUNC_ALT_7
#define STM32F3_PINMUX_FUNC_PA3_USART2_RX STM32_PINMUX_FUNC_ALT_7
#ifndef CONFIG_SOC_STM32F334X8
#define STM32F3_PINMUX_FUNC_PD5_USART2_TX STM32_PINMUX_FUNC_ALT_7
#define STM32F3_PINMUX_FUNC_PD6_USART2_RX STM32_PINMUX_FUNC_ALT_7
#endif
#if CONFIG_SOC_STM32F303XC
#define STM32F3_PINMUX_FUNC_PB10_USART3_TX STM32_PINMUX_FUNC_ALT_7
#define STM32F3_PINMUX_FUNC_PB11_USART3_RX STM32_PINMUX_FUNC_ALT_7
#elif CONFIG_SOC_STM32F334X8
#define STM32F3_PINMUX_FUNC_PB8_USART3_RX STM32_PINMUX_FUNC_ALT_7
#define STM32F3_PINMUX_FUNC_PB9_USART3_TX STM32_PINMUX_FUNC_ALT_7
#define STM32F3_PINMUX_FUNC_PB10_USART3_TX STM32_PINMUX_FUNC_ALT_7
#define STM32F3_PINMUX_FUNC_PB11_USART3_RX STM32_PINMUX_FUNC_ALT_7
#elif CONFIG_SOC_STM32F373XC
#define STM32F3_PINMUX_FUNC_PB8_USART3_TX STM32_PINMUX_FUNC_ALT_7
#define STM32F3_PINMUX_FUNC_PB9_USART3_RX STM32_PINMUX_FUNC_ALT_7
#define STM32F3_PINMUX_FUNC_PB10_USART3_TX STM32_PINMUX_FUNC_ALT_7
#endif
#define STM32F3_PINMUX_FUNC_PB8_I2C1_SCL STM32_PINMUX_FUNC_ALT_4
#define STM32F3_PINMUX_FUNC_PB9_I2C1_SDA STM32_PINMUX_FUNC_ALT_4
#endif /* _STM32F3_PINMUX_H_ */