mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 23:49:00 +08:00
moved spi to mcu_periph/spi
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# baro scp bits
|
# baro scp bits
|
||||||
ap.CFLAGS += -DUSE_BARO_SCP -DUSE_SPI -DSPI_MASTER -DUSE_SPI_SLAVE0
|
ap.CFLAGS += -DUSE_BARO_SCP -DUSE_SPI -DSPI_MASTER -DUSE_SPI_SLAVE0
|
||||||
ap.srcs += $(SRC_CSC)/csc_baro.c spi.c $(SRC_ARCH)/spi_hw.c
|
ap.srcs += $(SRC_CSC)/csc_baro.c mcu_periph/spi.c $(SRC_ARCH)/mcu_periph/spi_arch.c
|
||||||
|
|
||||||
|
|||||||
@@ -208,9 +208,9 @@ jsbsim.srcs += downlink.c datalink.c $(SRC_ARCH)/jsbsim_hw.c $(SRC_ARCH)/jsbsi
|
|||||||
|
|
||||||
ifeq ($(BOARD),classix)
|
ifeq ($(BOARD),classix)
|
||||||
fbw.CFLAGS += -DMCU_SPI_LINK -DUSE_SPI -DSPI_SLAVE
|
fbw.CFLAGS += -DMCU_SPI_LINK -DUSE_SPI -DSPI_SLAVE
|
||||||
fbw.srcs += $(SRC_FIXEDWING)/link_mcu.c $(SRC_FIXEDWING)/spi.c $(SRC_ARCH)/spi_hw.c
|
fbw.srcs += $(SRC_FIXEDWING)/link_mcu.c mcu_periph/spi.c $(SRC_ARCH)/mcu_periph/spi_arch.c
|
||||||
ap.CFLAGS += -DMCU_SPI_LINK -DUSE_SPI -DSPI_MASTER -DUSE_SPI_SLAVE0
|
ap.CFLAGS += -DMCU_SPI_LINK -DUSE_SPI -DSPI_MASTER -DUSE_SPI_SLAVE0
|
||||||
ap.srcs += $(SRC_FIXEDWING)/link_mcu.c $(SRC_FIXEDWING)/spi.c $(SRC_ARCH)/spi_hw.c
|
ap.srcs += $(SRC_FIXEDWING)/link_mcu.c mcu_periph/spi.c $(SRC_ARCH)/mcu_periph/spi_arch.c
|
||||||
else
|
else
|
||||||
# Single MCU's run both
|
# Single MCU's run both
|
||||||
ap.CFLAGS += $(fbw_CFLAGS)
|
ap.CFLAGS += $(fbw_CFLAGS)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#generic spi driver
|
#generic spi driver
|
||||||
$(TARGET).CFLAGS += -DUSE_SPI
|
$(TARGET).CFLAGS += -DUSE_SPI
|
||||||
|
|
||||||
ap.srcs += spi.c $(SRC_ARCH)/spi_hw.c
|
ap.srcs += mcu_periph/spi.c $(SRC_ARCH)/mcu_periph/spi_arch.c
|
||||||
sim.srcs += spi.c $(SRC_ARCH)/spi_hw.c
|
sim.srcs += mcu_periph/spi.c $(SRC_ARCH)/mcu_periph/spi_arch.c
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include CONFIG
|
#include CONFIG
|
||||||
#include "spi.h"
|
#include "mcu_periph/spi.h"
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
#include <avr/io.h>
|
#include <avr/io.h>
|
||||||
@@ -27,7 +27,7 @@
|
|||||||
#include "armVIC.h"
|
#include "armVIC.h"
|
||||||
#include BOARD_CONFIG
|
#include BOARD_CONFIG
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
#include "spi_hw.h"
|
#include "mcu_periph/spi.h"
|
||||||
|
|
||||||
#define ADS8344_SS_IODIR IO0DIR
|
#define ADS8344_SS_IODIR IO0DIR
|
||||||
#define ADS8344_SS_IOSET IO0SET
|
#define ADS8344_SS_IOSET IO0SET
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
* for now only SPI1 ( aka SSP )
|
* for now only SPI1 ( aka SSP )
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "spi.h"
|
#include "mcu_periph/spi.h"
|
||||||
|
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "LPC21xx.h"
|
#include "LPC21xx.h"
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "spi_hw.h"
|
#include "mcu_periph/spi.h"
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "LPC21xx.h"
|
#include "LPC21xx.h"
|
||||||
#include "interrupt_hw.h"
|
#include "mcu.h"
|
||||||
|
|
||||||
#include "spi_hw.h"
|
#include "mcu_periph/spi.h"
|
||||||
#include BOARD_CONFIG
|
#include BOARD_CONFIG
|
||||||
|
|
||||||
#include "generated/airframe.h"
|
#include "generated/airframe.h"
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
#include "mcu_periph/spi.h"
|
||||||
|
|
||||||
|
void spi_init( void ) {}
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#include "spi.h"
|
|
||||||
|
|
||||||
void spi_init( void ) {}
|
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#ifdef USE_SPI
|
#ifdef USE_SPI
|
||||||
#include "spi.h"
|
#include "mcu_periph/spi.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TRAFFIC_INFO
|
#ifdef TRAFFIC_INFO
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
#include "mcu.h"
|
#include "mcu.h"
|
||||||
|
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
#include "spi.h"
|
#include "mcu_periph/spi.h"
|
||||||
#include "mcu_periph/adc.h"
|
#include "mcu_periph/adc.h"
|
||||||
|
|
||||||
#ifdef USE_USB_SERIAL
|
#ifdef USE_USB_SERIAL
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "link_mcu.h"
|
#include "link_mcu.h"
|
||||||
#include "spi.h"
|
#include "mcu_periph/spi.h"
|
||||||
|
|
||||||
struct link_mcu_msg link_mcu_from_ap_msg;
|
struct link_mcu_msg link_mcu_from_ap_msg;
|
||||||
struct link_mcu_msg link_mcu_from_fbw_msg;
|
struct link_mcu_msg link_mcu_from_fbw_msg;
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "spi.h"
|
#include "mcu_periph/spi.h"
|
||||||
|
|
||||||
uint8_t* spi_buffer_input;
|
uint8_t* spi_buffer_input;
|
||||||
uint8_t* spi_buffer_output;
|
uint8_t* spi_buffer_output;
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \file spi.h
|
/** \file mcu_periph/spi.h
|
||||||
* \brief arch independant SPI (Serial Peripheral Interface) API */
|
* \brief arch independant SPI (Serial Peripheral Interface) API */
|
||||||
|
|
||||||
|
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
#ifdef USE_SPI
|
#ifdef USE_SPI
|
||||||
|
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "spi_hw.h"
|
#include "mcu_periph/spi_arch.h"
|
||||||
|
|
||||||
extern uint8_t* spi_buffer_input;
|
extern uint8_t* spi_buffer_input;
|
||||||
extern uint8_t* spi_buffer_output;
|
extern uint8_t* spi_buffer_output;
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "spi_hw.h"
|
#include "mcu_periph/spi.h"
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
|
|
||||||
/* EA DOGM163, 3 line LCD at 3.3V */
|
/* EA DOGM163, 3 line LCD at 3.3V */
|
||||||
|
|||||||
@@ -26,8 +26,8 @@
|
|||||||
* \brief driver for the VectorNav VN100 (Fixed-Wing part)
|
* \brief driver for the VectorNav VN100 (Fixed-Wing part)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "ins_vn100.h"
|
#include "modules/ins/ins_vn100.h"
|
||||||
#include "spi.h"
|
#include "mcu_periph/spi.h"
|
||||||
|
|
||||||
void ins_init( void ) {
|
void ins_init( void ) {
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "spi_hw.h"
|
#include "mcu_periph/spi_hw.h"
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
|
|
||||||
/* Pin configuration for max3100 IRQ */
|
/* Pin configuration for max3100 IRQ */
|
||||||
|
|||||||
@@ -28,8 +28,8 @@
|
|||||||
* uses: MOSI, MISO, SCK and 32kHz @ P0.7 with 5V for the -A type
|
* uses: MOSI, MISO, SCK and 32kHz @ P0.7 with 5V for the -A type
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "baro_MS5534A.h"
|
#include "modules/sensors/baro_MS5534A.h"
|
||||||
#include "spi.h"
|
#include "mcu_periph/spi.h"
|
||||||
#include "mcu_periph/uart.h"
|
#include "mcu_periph/uart.h"
|
||||||
#ifndef BARO_NO_DOWNLINK
|
#ifndef BARO_NO_DOWNLINK
|
||||||
#include "ap_downlink.h"
|
#include "ap_downlink.h"
|
||||||
|
|||||||
@@ -1,16 +1,15 @@
|
|||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "init_hw.h"
|
|
||||||
#include "sys_time.h"
|
#include "sys_time.h"
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
#include "interrupt_hw.h"
|
#include "mcu.h"
|
||||||
|
|
||||||
#include "mcu_periph/uart.h"
|
#include "mcu_periph/uart.h"
|
||||||
#include "messages.h"
|
#include "messages.h"
|
||||||
#include "downlink.h"
|
#include "downlink.h"
|
||||||
|
|
||||||
#include "spi_hw.h"
|
#include "mcu_periph/spi.h"
|
||||||
|
|
||||||
#include "baro_scp.h"
|
#include "modules/sensors/baro_scp.h"
|
||||||
|
|
||||||
#ifndef SENSOR_SYNC_SEND
|
#ifndef SENSOR_SYNC_SEND
|
||||||
#warning set SENSOR_SYNC_SEND to use baro_scp
|
#warning set SENSOR_SYNC_SEND to use baro_scp
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
#include "generated/settings.h"
|
#include "generated/settings.h"
|
||||||
#include "dl_protocol.h"
|
#include "dl_protocol.h"
|
||||||
|
|
||||||
#include "spi.h"
|
#include "mcu_periph/spi.h"
|
||||||
#include "sd_card.h"
|
#include "sd_card.h"
|
||||||
|
|
||||||
static inline void main_init( void );
|
static inline void main_init( void );
|
||||||
|
|||||||
Reference in New Issue
Block a user