stm32cubemx扩展模拟iic函数

stm32cubemx实现模拟IIC https://blog.csdn.net/qq_45467083/article/details/109433847

上面的代码只是iic的基础功能,这里增加了对一些地址读写寄存器的函数封装。

#ifndef __IOI2C_H
#define __IOI2C_H

#include "main.h"
typedef uint8_t u8;
typedef uint32_t u32;

#define SDA_GROUP		GPIOB
#define S

猜你喜欢

转载自blog.csdn.net/qq_45467083/article/details/109456487