一、Initialization
The following steps are required to initialize the UART:
0.给UART模块上电
1.Perform the necessary device pin multiplexing setup (see your device-specific data manual).
2.Set the desired baud rate by w...
一、I2C的协议这里就不赘述了,随便搜一下就可以了解。
二、I2C的初始化
1.Enable I2C clock
configure the PSC register(if it is driven by PSC)PSC相关说明可以查看手册
2. Configure the PinMultiplexing registers
3. Place I2C in re...