mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-01 04:46:51 +08:00
[fix] use SPI2 for booz imu on lisa boards
This commit is contained in:
@@ -46,16 +46,16 @@ imu_srcs += peripherals/max1168.c
|
||||
imu_srcs += $(SRC_ARCH)/peripherals/max1168_arch.c
|
||||
|
||||
include $(CFG_SHARED)/spi.makefile
|
||||
ap.CFLAGS += -DUSE_SPI_SLAVE0
|
||||
ap.CFLAGS += -DUSE_SPI1
|
||||
ap.CFLAGS += -DSPI_MASTER
|
||||
imu.CFLAGS += -DUSE_SPI_SLAVE0
|
||||
imu.CFLAGS += -DSPI_MASTER
|
||||
|
||||
ifeq ($(ARCH), lpc21)
|
||||
imu.CFLAGS += -DUSE_SPI1
|
||||
imu_CFLAGS += -DSSP_VIC_SLOT=9
|
||||
imu_CFLAGS += -DMAX1168_EOC_VIC_SLOT=8
|
||||
else ifeq ($(ARCH), stm32)
|
||||
#FIXME: untested
|
||||
imu_CFLAGS += -DUSE_SPI2
|
||||
imu_CFLAGS += -DUSE_SPI2 -DMAX1168_SPI_DEV=spi2
|
||||
endif
|
||||
|
||||
|
||||
|
||||
@@ -795,4 +795,6 @@ void process_tx_dma_interrupt( struct spi_periph *spi ) {
|
||||
*/
|
||||
#ifdef SPI_SLAVE
|
||||
|
||||
#warning SPI_SLAVE mode currently not implemented for STM32.
|
||||
|
||||
#endif /* SPI_SLAVE */
|
||||
|
||||
Reference in New Issue
Block a user