新增了教程和注释以及文档,增加了一键编译并打开ozone调试的脚本

This commit is contained in:
NeoZng
2023-02-14 11:13:32 +08:00
parent 8fa03012cf
commit 7c76852041
41 changed files with 201 additions and 45 deletions

View File

@@ -70,7 +70,7 @@ void IICReceive(IICInstance *iic, uint8_t *data, uint16_t size, IIC_Seq_Mode_e s
{
if (seq_mode != IIC_RELEASE && seq_mode != IIC_HOLD_ON)
while (1)
; // 未知传输模式, 程序停止
; // 未知传输模式, 程序停止,请检查指针越界
// 初始化接收缓冲区地址以及接受长度, 用于中断回调函数
iic->rx_buffer = data;
@@ -140,7 +140,7 @@ void HAL_I2C_MasterRxCpltCallback(I2C_HandleTypeDef *hi2c)
}
/**
* @brief 仅做形式上的封装,仍然使用HAL_I2C_MasterRxCpltCallback
* @brief 内存访问回调函数,仅做形式上的封装,仍然使用HAL_I2C_MasterRxCpltCallback
*
* @param hi2c handle
*/

View File

@@ -4,4 +4,7 @@
https://blog.csdn.net/NeoZng/article/details/128496694
https://blog.csdn.net/NeoZng/article/details/128486366
https://blog.csdn.net/NeoZng/article/details/128486366
使用序列通信则在单次通信后不会释放总线,继续占用直到调用传输函数时传入`IIC_RELEASE`参数. 这个功能只在一条总线上挂载多个主机的时候有用.