STM32之串口移植(在固定的条件下才会进行编译)
stm串口函数在某些条件下想要让其串口打印,但是在某些时候不想让其进行串口打印本例程就是提供了一个这样的例程:1.对串口进行初始化配置void uart_initwBaudRate(void) { //GPIO端口设置 GPIO_InitTypeDef GPIO_InitStructure; UART_InitTypeDef UART_InitStructure; NV...
原创
2019-08-30 17:35:33 ·
1329 阅读 ·
0 评论