diff options
author | Keith Packard <keithp@keithp.com> | 2011-07-09 16:59:16 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-13 18:46:12 -0700 |
commit | 30abbdc7ffcfc809b4a3fc31486fe968161ea225 (patch) | |
tree | 5f7735943d8bc54e5f6a478e168aebc054b215d6 /src/ao_m25.c | |
parent | 578c4b17b8f62f2727654ebda78ee139f9fe13fa (diff) |
altos: Add SPI-based companion board support
This sends current flight state information and retrieves companion
data to include in telemetry.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_m25.c')
-rw-r--r-- | src/ao_m25.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ao_m25.c b/src/ao_m25.c index 208c69ba..d7208273 100644 --- a/src/ao_m25.c +++ b/src/ao_m25.c @@ -99,8 +99,8 @@ static __xdata uint8_t ao_m25_mutex; static __xdata uint8_t ao_m25_instruction[4]; -#define M25_SELECT(cs) (SPI_CS_PORT &= ~(cs)) -#define M25_DESELECT(cs) (SPI_CS_PORT |= (cs)) +#define M25_SELECT(cs) ao_spi_get_mask(SPI_CS_PORT,cs) +#define M25_DESELECT(cs) ao_spi_put_mask(SPI_CS_PORT,cs) #define M25_BLOCK_SHIFT 16 #define M25_BLOCK 65536L |