include&34;usart1h&34;includevoidUSART1_Config(void){GPIO_InitTypeDefGPIO_InitStructure;USART_In。stm32简单编程 向USART1发送字符串?更多详情请大家跟着小编一起来看看吧!

stm32简单编程 向USART1发送字符串(1)

stm32简单编程 向USART1发送字符串(1)

#include"usart1h"#includevoidUSART1_Config(void){GPIO_InitTypeDefGPIO_InitStructure;USART_InitTypeDefUSART_InitStructure;RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1|RCC_APB2Periph_GPIOA,ENABLE)

;配置输出TX引脚GPstm32串口程序:用串口助手发送一个到stm32串口1