mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 07:53:43 +08:00
Merge branch 'master' of git://github.com/paparazzi/paparazzi
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/** \file spi_hw.c
|
/** \file mcu_periph/spi_arch.c
|
||||||
* \brief handling of hardware dependant SPI on AVR architecture
|
* \brief handling of hardware dependant SPI on AVR architecture
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|||||||
@@ -22,8 +22,8 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SPI_HW_H
|
#ifndef SPI_ARCH_H
|
||||||
#define SPI_HW_H
|
#define SPI_ARCH_H
|
||||||
|
|
||||||
/** Index in SPI buffers: one is enough for full duplex communication */
|
/** Index in SPI buffers: one is enough for full duplex communication */
|
||||||
extern volatile uint8_t spi_idx_buf;
|
extern volatile uint8_t spi_idx_buf;
|
||||||
@@ -83,4 +83,4 @@ extern volatile uint8_t spi_idx_buf;
|
|||||||
#endif /* SPI_MASTER */
|
#endif /* SPI_MASTER */
|
||||||
|
|
||||||
|
|
||||||
#endif /* SPI_HW_H */
|
#endif /* SPI_ARCH_H */
|
||||||
|
|||||||
@@ -25,8 +25,8 @@
|
|||||||
* for now only SPI1 ( aka SSP )
|
* for now only SPI1 ( aka SSP )
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SPI_HW_H
|
#ifndef SPI_ARCH_H
|
||||||
#define SPI_HW_H
|
#define SPI_ARCH_H
|
||||||
|
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "LPC21xx.h"
|
#include "LPC21xx.h"
|
||||||
@@ -192,4 +192,4 @@ extern volatile uint8_t spi_rx_idx;
|
|||||||
#define SpiClrCPHA() (SSPCR0 &= ~(_BV(7)))
|
#define SpiClrCPHA() (SSPCR0 &= ~(_BV(7)))
|
||||||
|
|
||||||
|
|
||||||
#endif /* SPI_HW_H */
|
#endif /* SPI_ARCH_H */
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
#include "csc_booz2_ins.h"
|
#include "csc_booz2_ins.h"
|
||||||
#include "csc_ap_link.h"
|
#include "csc_ap_link.h"
|
||||||
|
|
||||||
#include "spi_hw.h"
|
#include "mcu_periph/spi_arch.h"
|
||||||
|
|
||||||
#include "csc_baro.h"
|
#include "csc_baro.h"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "std.h"
|
#include "std.h"
|
||||||
#include "mcu_periph/spi_hw.h"
|
#include "mcu_periph/spi_arch.h"
|
||||||
#include "led.h"
|
#include "led.h"
|
||||||
|
|
||||||
/* Pin configuration for max3100 IRQ */
|
/* Pin configuration for max3100 IRQ */
|
||||||
|
|||||||
Reference in New Issue
Block a user