Merge recoverI2c() and recoverI2cEeprom() as recoverI2cBus(), add i2c_bus_t.

This commit is contained in:
László Monda
2018-05-26 22:37:10 +02:00
parent 3fb552cc55
commit 18e3ba9558
3 changed files with 46 additions and 43 deletions

View File

@@ -5,6 +5,18 @@
#include "fsl_common.h"
// Typedefs
typedef struct {
GPIO_Type *sdaGpio;
PORT_Type *sdaPort;
uint32_t sdaPin;
GPIO_Type *sclGpio;
PORT_Type *sclPort;
uint32_t sclPin;
} i2c_bus_t;
// Variables:
extern bool IsBusPalOn;