Re: I2C Slave mode support?
Posted: Sun Aug 21, 2016 8:57 pm
In chibios all hal drivers have "hal_" prefix i just replaced content and including file names but I have several errors

Code: Select all
make -j1 all
Compiling hal_i2c_lld.c
../../ChibiOS/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c: In function 'i2c_lld_serve_event_interrupt':
../../ChibiOS/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c:934:14: error: macro "qEvt" requires 2 arguments, but only 1 given
qEvt(0x0000);
^
../../ChibiOS/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c:934:3: error: 'qEvt' undeclared (first use in this function)
qEvt(0x0000);
^
../../ChibiOS/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c:934:3: note: each undeclared identifier is reported only once for each function it appears in
../../ChibiOS/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c:137:19: warning: large integer implicitly truncated to unsigned type [-Woverflow]
i2cQ[i2cI].code=(posn); i2cQ[i2cI].state=(i2cp->mode); i2cQ[i2cI].param=(info); }
^
../../ChibiOS/os/hal/ports/STM32/LLD/I2Cv1/hal_i2c_lld.c:938:1: note: in expansion of macro 'qEvt'
qEvt(0x9999,0);
^
make: *** [build/obj/hal_i2c_lld.o] Error 1