|
#if defined (Open_UART3)
#define USART3_GPIO_Cmd RCC_APB2PeriphClockCmd
#define USART3_GPIO_CLK RCC_APB2Periph_GPIOC
#define USART3_AFIO_Cmd RCC_APB2PeriphClockCmd
#define USART3_AFIO_CLK RCC_APB2Periph_AFIO
#define USART3_CLK_Cmd RCC_APB1PeriphClockCmd
#define USART3_CLK RCC_APB1Periph_USART3
#define USART3_GPIO_PORT GPIOC
#define USART3_RxPin GPIO_Pin_11
#define USART3_TxPin GPIO_Pin_10
STM32F103C8T6 uart3在PB端口,而不是在GPIOC
|
|