stm32基于HAL库的uart外设的封装 项目开发中经常遇到uart的项目,各种不同外设,要求五花八门。在这过程中对uart的操作进行抽象。3. 不同接口,ttl rs232 rs485 max3160。1. 不同模式 polling it DMA。2. 是否启用空闲中断。