Rename old SPI API to -legacy.h
This commit is contained in:
parent
448ee8ae96
commit
ee4e287fc5
@ -138,7 +138,7 @@
|
|||||||
#define SPI_WAITFOREOTx() SPIX_WAITFOREOTx(SPI_DEFAULT_INSTANCE)
|
#define SPI_WAITFOREOTx() SPIX_WAITFOREOTx(SPI_DEFAULT_INSTANCE)
|
||||||
#define SPI_WAITFOREORx() SPIX_WAITFOREORx(SPI_DEFAULT_INSTANCE)
|
#define SPI_WAITFOREORx() SPIX_WAITFOREORx(SPI_DEFAULT_INSTANCE)
|
||||||
#ifdef SPI_FLUSH
|
#ifdef SPI_FLUSH
|
||||||
#error You must include spi-arch-legacy.h before spi.h for the CC2538
|
#error You must include spi-arch-legacy.h before spi-legacy.h for the CC2538
|
||||||
#else
|
#else
|
||||||
#define SPI_FLUSH() SPIX_FLUSH(SPI_DEFAULT_INSTANCE)
|
#define SPI_FLUSH() SPIX_FLUSH(SPI_DEFAULT_INSTANCE)
|
||||||
#endif
|
#endif
|
||||||
|
@ -37,7 +37,6 @@
|
|||||||
#include "sys/cc.h"
|
#include "sys/cc.h"
|
||||||
#include "ioc.h"
|
#include "ioc.h"
|
||||||
#include "sys-ctrl.h"
|
#include "sys-ctrl.h"
|
||||||
#include "spi.h"
|
|
||||||
#include "ssi.h"
|
#include "ssi.h"
|
||||||
#include "gpio.h"
|
#include "gpio.h"
|
||||||
#include "sys/log.h"
|
#include "sys/log.h"
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
#include "sys/cc.h"
|
#include "sys/cc.h"
|
||||||
#include "dev/ioc.h"
|
#include "dev/ioc.h"
|
||||||
#include "dev/sys-ctrl.h"
|
#include "dev/sys-ctrl.h"
|
||||||
#include "dev/spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "dev/ssi.h"
|
#include "dev/ssi.h"
|
||||||
#include "dev/gpio.h"
|
#include "dev/gpio.h"
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "dev/spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "cc2420.h"
|
#include "cc2420.h"
|
||||||
#include "isr_compat.h"
|
#include "isr_compat.h"
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "contiki-net.h"
|
#include "contiki-net.h"
|
||||||
|
|
||||||
#include "dev/spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "cc2420.h"
|
#include "cc2420.h"
|
||||||
#include "isr_compat.h"
|
#include "isr_compat.h"
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "dev/spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "dev/cc2520/cc2520.h"
|
#include "dev/cc2520/cc2520.h"
|
||||||
#include "isr_compat.h"
|
#include "isr_compat.h"
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "contiki-net.h"
|
#include "contiki-net.h"
|
||||||
|
|
||||||
#include "dev/spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "dev/cc2520/cc2520.h"
|
#include "dev/cc2520/cc2520.h"
|
||||||
#include "isr_compat.h"
|
#include "isr_compat.h"
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
#include "sys/energest.h"
|
#include "sys/energest.h"
|
||||||
|
|
||||||
#include "dev/leds.h"
|
#include "dev/leds.h"
|
||||||
#include "dev/spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "cc2420.h"
|
#include "cc2420.h"
|
||||||
#include "cc2420_const.h"
|
#include "cc2420_const.h"
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
#define CC2420_H_
|
#define CC2420_H_
|
||||||
|
|
||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
#include "dev/spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "dev/radio.h"
|
#include "dev/radio.h"
|
||||||
#include "cc2420_const.h"
|
#include "cc2420_const.h"
|
||||||
#include "lib/aes-128.h"
|
#include "lib/aes-128.h"
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <contiki.h>
|
#include <contiki.h>
|
||||||
#include <dev/spi.h>
|
#include "dev/spi-legacy.h"
|
||||||
#include <dev/leds.h>
|
#include <dev/leds.h>
|
||||||
|
|
||||||
#include "dev/i2c.h"
|
#include "dev/i2c.h"
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "dev/spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "dev/xmem.h"
|
#include "dev/xmem.h"
|
||||||
#include "dev/watchdog.h"
|
#include "dev/watchdog.h"
|
||||||
|
|
||||||
|
@ -49,7 +49,7 @@
|
|||||||
#include "dev/spi-arch-legacy.h"
|
#include "dev/spi-arch-legacy.h"
|
||||||
#include "dev/ioc.h"
|
#include "dev/ioc.h"
|
||||||
#include "dev/sys-ctrl.h"
|
#include "dev/sys-ctrl.h"
|
||||||
#include "dev/spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "dev/ssi.h"
|
#include "dev/ssi.h"
|
||||||
#include "dev/gpio.h"
|
#include "dev/gpio.h"
|
||||||
#include "dev/gpio-hal.h"
|
#include "dev/gpio-hal.h"
|
||||||
|
@ -42,7 +42,7 @@
|
|||||||
#include "dev/spi-arch-legacy.h"
|
#include "dev/spi-arch-legacy.h"
|
||||||
#include "dev/ioc.h"
|
#include "dev/ioc.h"
|
||||||
#include "dev/gpio.h"
|
#include "dev/gpio.h"
|
||||||
#include "dev/spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "mmc-arch.h"
|
#include "mmc-arch.h"
|
||||||
|
|
||||||
#define USD_SEL_PORT_BASE GPIO_PORT_TO_BASE(USD_SEL_PORT)
|
#define USD_SEL_PORT_BASE GPIO_PORT_TO_BASE(USD_SEL_PORT)
|
||||||
|
@ -44,7 +44,7 @@
|
|||||||
*/
|
*/
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#include "dev/spi-arch-legacy.h"
|
#include "dev/spi-arch-legacy.h"
|
||||||
#include "spi.h"
|
#include "dev/spi-legacy.h"
|
||||||
#include "dev/gpio.h"
|
#include "dev/gpio.h"
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#define RESET_PORT GPIO_PORT_TO_BASE(ETH_RESET_PORT)
|
#define RESET_PORT GPIO_PORT_TO_BASE(ETH_RESET_PORT)
|
||||||
|
@ -36,8 +36,8 @@
|
|||||||
* Niclas Finne <nfi@sics.se>
|
* Niclas Finne <nfi@sics.se>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef SPI_H_
|
#ifndef SPI_LEGACY_H_
|
||||||
#define SPI_H_
|
#define SPI_LEGACY_H_
|
||||||
|
|
||||||
/* Define macros to use for checking SPI transmission status depending
|
/* Define macros to use for checking SPI transmission status depending
|
||||||
on if it is possible to wait for TX buffer ready. This is possible
|
on if it is possible to wait for TX buffer ready. This is possible
|
||||||
@ -89,4 +89,4 @@ void spi_init(void);
|
|||||||
} while(0)
|
} while(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* SPI_H_ */
|
#endif /* SPI_LEGACY_H_ */
|
Loading…
Reference in New Issue
Block a user