高级会员

- 积分
- 679
- 金钱
- 679
- 注册时间
- 2020-11-21
- 在线时间
- 67 小时
|
发表于 2020-12-14 10:56:53
|
显示全部楼层
回帖奖励 +1 金钱
- // 将USART Tx的GPIO配置为推挽复用模式
- GPIO_InitStructure.GPIO_Pin = DEBUG_USART_TX_GPIO_PIN;
- GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;
- GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
- GPIO_Init( DEBUG_USART_TX_GPIO_PORT, &GPIO_InitStructure );
- // 将USART Rx的GPIO配置为浮空输入模式
- GPIO_InitStructure.GPIO_Pin = DEBUG_USART_RX_GPIO_PIN;
- GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
- GPIO_Init( DEBUG_USART_RX_GPIO_PORT, &GPIO_InitStructure );
复制代码 |
|