2016-03-06 20:53:00 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2016 Open-RnD Sp. z o.o.
|
|
|
|
*
|
2017-01-19 09:01:01 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2016-03-06 20:53:00 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _STM32F1_PINMUX_H_
|
|
|
|
#define _STM32F1_PINMUX_H_
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @file Header for STM32F1 pin multiplexing helper
|
|
|
|
*/
|
|
|
|
|
2017-07-25 17:57:28 +08:00
|
|
|
#define STM32F1_PINMUX_FUNC_PA9_USART1_TX STM32_PIN_USART_TX
|
|
|
|
#define STM32F1_PINMUX_FUNC_PA10_USART1_RX STM32_PIN_USART_RX
|
2016-03-06 20:53:00 +08:00
|
|
|
|
2017-07-25 17:57:28 +08:00
|
|
|
#define STM32F1_PINMUX_FUNC_PA2_USART2_TX STM32_PIN_USART_TX
|
|
|
|
#define STM32F1_PINMUX_FUNC_PA3_USART2_RX STM32_PIN_USART_RX
|
2016-03-06 20:53:00 +08:00
|
|
|
|
2017-07-25 17:57:28 +08:00
|
|
|
#define STM32F1_PINMUX_FUNC_PD5_USART2_TX STM32_PIN_USART_TX
|
|
|
|
#define STM32F1_PINMUX_FUNC_PD6_USART2_RX STM32_PIN_USART_RX
|
2017-01-07 00:29:53 +08:00
|
|
|
|
2017-07-25 17:57:28 +08:00
|
|
|
#define STM32F1_PINMUX_FUNC_PB6_I2C1_SCL STM32_PIN_I2C
|
|
|
|
#define STM32F1_PINMUX_FUNC_PB7_I2C1_SDA STM32_PIN_I2C
|
|
|
|
#define STM32F1_PINMUX_FUNC_PB8_I2C1_SCL STM32_PIN_I2C
|
|
|
|
#define STM32F1_PINMUX_FUNC_PB9_I2C1_SDA STM32_PIN_I2C
|
2016-03-06 20:53:00 +08:00
|
|
|
|
2017-07-25 17:57:28 +08:00
|
|
|
#define STM32F1_PINMUX_FUNC_PB10_USART3_TX STM32_PIN_USART_TX
|
|
|
|
#define STM32F1_PINMUX_FUNC_PB11_USART3_RX STM32_PIN_USART_RX
|
|
|
|
|
|
|
|
#define STM32F1_PINMUX_FUNC_PB10_I2C2_SCL STM32_PIN_I2C
|
|
|
|
#define STM32F1_PINMUX_FUNC_PB11_I2C2_SDA STM32_PIN_I2C
|
|
|
|
|
|
|
|
#define STM32F1_PINMUX_FUNC_PA8_PWM1_CH1 STM32_PIN_PWM
|
2016-03-06 20:53:00 +08:00
|
|
|
|
|
|
|
#endif /* _STM32F1_PINMUX_H_ */
|