stm32cubemx extended analog iic function

stm32cubemx realizes simulation IIC https://blog.csdn.net/qq_45467083/article/details/109433847

The above code is only the basic function of iic, here is the function package for reading and writing registers to some addresses.

#ifndef __IOI2C_H
#define __IOI2C_H

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

#define SDA_GROUP		GPIOB
#define S

Guess you like

Origin blog.csdn.net/qq_45467083/article/details/109456487