摘要:
代码如下 void usart2_config() { GPIO_InitTypeDef gpioInitStruct; USART_InitTypeDef usartInitStruct; NVIC_InitTypeDef nvicInitStruct; RCC_APB1PeriphClockCm 阅读全文
posted @ 2021-02-15 22:32
zhaogaojian
阅读(727)
评论(0)
推荐(0)
摘要:
1、配置端口代码如下 void usart1_config() { RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA|RCC_APB2Periph_USART1|RCC_APB2Periph_AFIO,ENABLE); GPIO_InitTypeDef a; a 阅读全文
posted @ 2021-02-15 17:51
zhaogaojian
阅读(1234)
评论(0)
推荐(0)

浙公网安备 33010602011771号