I am quite new to ChibiOS, so please forgive what could be an obvious mistake on my side.
As soon as I add I2C support for F42x boards (F427 & F429 so far), I get compilation errors about many missing declarations (e.g. I2C_CR2_ADD10) :
Code: Select all
C:\dev\nf-interpreter\build\ChibiOS_Source\os\hal\ports\STM32\LLD\I2Cv2\i2c_lld.c: In function 'i2c_lld_set_address':
C:\dev\nf-interpreter\build\ChibiOS_Source\os\hal\ports\STM32\LLD\I2Cv2\i2c_lld.c:137:28: error: 'I2C_CR2_ADD10' undeclared (first use in this function)
if ((i2cp->config->cr2 & I2C_CR2_ADD10) == 0U)Such declarations are available for many other MCUs but not F42x ones as far as I can tell.
I did try to use i2cv1 but I get other errors as well.
FYI, I do not have any problem when adding SPI, PWM or ADC support (among others).
So my question is : how can I avoid those compile time errors or what am I doing wrong here ?
Best regards,
___________
Christophe