diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-27 14:34:53 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-27 14:34:53 -0700 |
commit | 08a4ed8fe794a2b2b52147bd5535fe0954822e95 (patch) | |
tree | d9ae25dd4922c15a7c2d55ce95b601c6bf02ce75 /src/drivers/ao_m25.c | |
parent | 1a1d4a557a30e2e743936b828b654187ec562ca8 (diff) |
altos: include targe SPI speed in get request
STM needs it to be provided when enabling the SPI device, so just fix
AVR and cc1111 to do the same.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_m25.c')
-rw-r--r-- | src/drivers/ao_m25.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/ao_m25.c b/src/drivers/ao_m25.c index 2983a405..9603c1de 100644 --- a/src/drivers/ao_m25.c +++ b/src/drivers/ao_m25.c @@ -110,7 +110,7 @@ static void ao_boot_radio(void) { #define ao_boot_radio() #endif -#define M25_SELECT(cs) do { ao_boot_radio(); ao_spi_get_mask(AO_M25_SPI_CS_PORT,cs,AO_M25_SPI_BUS); } while (0) +#define M25_SELECT(cs) do { ao_boot_radio(); ao_spi_get_mask(AO_M25_SPI_CS_PORT,cs,AO_M25_SPI_BUS, AO_SPI_SPEED_FAST); } while (0) #define M25_DESELECT(cs) ao_spi_put_mask(AO_M25_SPI_CS_PORT,cs,AO_M25_SPI_BUS) #define M25_BLOCK_SHIFT 16 |