chibios2.5.0: i2s driver development status
Posted: Fri Nov 30, 2012 5:02 pm
Hi, I am trying to use the I2S driver in a project of mine.
At the moment, I am not able to compile the os, because of errors, expecially in the os specific part. In fact, I needed to modify a few files like hal.mk,
and many others, in order to make it compile.
After that, I am getting the following errors:
ompiling ../../os/hal/platforms/STM32/i2s_lld.c
../../os/hal/platforms/STM32/i2s_lld.c: In function 'i2s_lld_init':
../../os/hal/platforms/STM32/i2s_lld.c:71:3: warning: passing argument 1 of 'spiObjectInit' from incompatible pointer type [enabled by default]
../../os/hal/include/spi.h:295:8: note: expected 'struct SPIDriver *' but argument is of type 'struct I2SDriver *'
../../os/hal/platforms/STM32/i2s_lld.c: In function 'i2s_lld_start':
../../os/hal/platforms/STM32/i2s_lld.c:88:19: error: 'spip' undeclared (first use in this function)
../../os/hal/platforms/STM32/i2s_lld.c:88:19: note: each undeclared identifier is reported only once for each function it appears in
../../os/hal/platforms/STM32/i2s_lld.c:92:45: error: 'i2s_lld_serve_rx_interrupt' undeclared (first use in this function)
../../os/hal/platforms/STM32/i2s_lld.c: In function 'i2s_lld_start_exchange':
../../os/hal/platforms/STM32/i2s_lld.c:135:40: warning: unused parameter 'i2sp' [-Wunused-parameter]
../../os/hal/platforms/STM32/i2s_lld.c: In function 'i2s_lld_start_exchange_continuous':
../../os/hal/platforms/STM32/i2s_lld.c:146:51: warning: unused parameter 'i2sp' [-Wunused-parameter]
../../os/hal/platforms/STM32/i2s_lld.c: In function 'i2s_lld_stop_exchange':
../../os/hal/platforms/STM32/i2s_lld.c:159:39: warning: unused parameter 'i2sp' [-Wunused-parameter]
make: *** [build/obj/i2s_lld.o] Error 1
I think I need to configure the SPI3 driver just before configure the I2S3 driver itself, but I am not sure about that.
Could somebody provide a working example or the right directions to go?
Thank you in advance.
-g
At the moment, I am not able to compile the os, because of errors, expecially in the os specific part. In fact, I needed to modify a few files like hal.mk,
and many others, in order to make it compile.
After that, I am getting the following errors:
ompiling ../../os/hal/platforms/STM32/i2s_lld.c
../../os/hal/platforms/STM32/i2s_lld.c: In function 'i2s_lld_init':
../../os/hal/platforms/STM32/i2s_lld.c:71:3: warning: passing argument 1 of 'spiObjectInit' from incompatible pointer type [enabled by default]
../../os/hal/include/spi.h:295:8: note: expected 'struct SPIDriver *' but argument is of type 'struct I2SDriver *'
../../os/hal/platforms/STM32/i2s_lld.c: In function 'i2s_lld_start':
../../os/hal/platforms/STM32/i2s_lld.c:88:19: error: 'spip' undeclared (first use in this function)
../../os/hal/platforms/STM32/i2s_lld.c:88:19: note: each undeclared identifier is reported only once for each function it appears in
../../os/hal/platforms/STM32/i2s_lld.c:92:45: error: 'i2s_lld_serve_rx_interrupt' undeclared (first use in this function)
../../os/hal/platforms/STM32/i2s_lld.c: In function 'i2s_lld_start_exchange':
../../os/hal/platforms/STM32/i2s_lld.c:135:40: warning: unused parameter 'i2sp' [-Wunused-parameter]
../../os/hal/platforms/STM32/i2s_lld.c: In function 'i2s_lld_start_exchange_continuous':
../../os/hal/platforms/STM32/i2s_lld.c:146:51: warning: unused parameter 'i2sp' [-Wunused-parameter]
../../os/hal/platforms/STM32/i2s_lld.c: In function 'i2s_lld_stop_exchange':
../../os/hal/platforms/STM32/i2s_lld.c:159:39: warning: unused parameter 'i2sp' [-Wunused-parameter]
make: *** [build/obj/i2s_lld.o] Error 1
I think I need to configure the SPI3 driver just before configure the I2S3 driver itself, but I am not sure about that.
Could somebody provide a working example or the right directions to go?
Thank you in advance.
-g