[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Paparazzi-devel] spi related errors during compile time
From: |
Chris |
Subject: |
[Paparazzi-devel] spi related errors during compile time |
Date: |
Sun, 30 Jun 2013 22:46:35 +0300 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 |
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] spi related errors during compile time,
Chris <=