|
From: | Felix Ruess |
Subject: | Re: [Paparazzi-devel] spi related errors during compile time |
Date: | Sun, 30 Jun 2013 22:20:50 +0200 |
Hi.
It is probably something stupid i forgot but when i try to compile my aircraft (ap=twog with the latest master version) which includes an own max7456 module, i get those spi related errors:
/home/hendrix/paparazzi/var/Cessna_182/ap/mcu.o: In function `mcu_init':
mcu.c:(.text.mcu_init+0x98): undefined reference to `spi0_init'
mcu.c:(.text.mcu_init+0x9c): undefined reference to `spi_init_slaves'
/home/hendrix/paparazzi/var/Cessna_182/ap/modules/osd/max7456.o: In function `osd_put_s':
max7456.c:(.text.osd_put_s+0x120): undefined reference to `spi_submit'
max7456.c:(.text.osd_put_s+0x14c): undefined reference to `spi0'
I have included the spi.h file (#include "mcu_periph/spi.h") in the c file
and i have defined those values in the module's xml file:
<define name="SPI_MASTER" value="1" />
<define name="USE_SPI" value="1" />
<define name="USE_SPI0" value="1" />
<define name="MAX7456_SPI_DEVICE" value="spi0" />
<define name="USE_SPI_SLAVE0" value="1" />
<define name="OSD_SPI_SLAVE_NUMBER" value="SPI_SLAVE0" />
Any ideas about what might cause those errors?
Chris
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |