/trunk/i2c.h |
---|
36,7 → 36,7 |
} __attribute__((packed)) I2C_Bus_t; |
#define I2C_TIMEOUT 500 // 500 ms |
#define I2C_BUFFER_LEN 100 // define the size of the rx/tx buffer in bytes |
#define I2C_BUFFER_LEN 200 // define the size of the rx/tx buffer in bytes |
// Retourns pointer to data structure of the selected bus |
volatile I2C_Bus_t* I2CBus(I2C_TypeDef* I2Cx); |