I have the following error during compilation : "unknown type name 'I2CConfig'"
Code: Select all
#include "ch.h"
#include "hal.h"
#include "Init.h"
....
static I2CConfig i2ccfg = {0,0b100100,180,37};
I have tried to include i2c.h and i2c_lld.h but I have the same error message (the I2CConfig typedef struct is defined in i2c_lld.h)
I don't understand where is the pb.
I use ChibiOS 2.2.0 on STM32 platform.
Thanks
Cyrille