paparazzi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Paparazzi-devel] spi related errors during compile time


From: Felix Ruess
Subject: Re: [Paparazzi-devel] spi related errors during compile time
Date: Sun, 30 Jun 2013 22:20:50 +0200

Hi Chris,

if I'm not mistaken, only SPI1 ( aka SSP ) is currently supported on the LPC.
Gautier, please correct me if I'm wrong, otherwise I'll add a compile time error message for this...

Cheers, Felix


On Sun, Jun 30, 2013 at 9:46 PM, Chris <address@hidden> wrote:
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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]