summaryrefslogtreecommitdiff
path: root/src/drivers/ao_at45db161d.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-27 14:34:53 -0700
committerKeith Packard <keithp@keithp.com>2012-06-27 14:34:53 -0700
commit08a4ed8fe794a2b2b52147bd5535fe0954822e95 (patch)
treed9ae25dd4922c15a7c2d55ce95b601c6bf02ce75 /src/drivers/ao_at45db161d.c
parent1a1d4a557a30e2e743936b828b654187ec562ca8 (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_at45db161d.c')
-rw-r--r--src/drivers/ao_at45db161d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/ao_at45db161d.c b/src/drivers/ao_at45db161d.c
index 5eb25acf..e7e74153 100644
--- a/src/drivers/ao_at45db161d.c
+++ b/src/drivers/ao_at45db161d.c
@@ -43,7 +43,7 @@ __xdata uint8_t ao_flash_mutex;
_asm nop _endasm; \
} while(0)
-#define ao_flash_cs_low() ao_spi_get_bit(FLASH_CS_PORT, FLASH_CS_PIN, FLASH_CS, AO_FLASH_SPI_BUS)
+#define ao_flash_cs_low() ao_spi_get_bit(FLASH_CS_PORT, FLASH_CS_PIN, FLASH_CS, AO_FLASH_SPI_BUS, AO_SPI_SPEED_FAST)
#define ao_flash_cs_high() ao_spi_put_bit(FLASH_CS_PORT, FLASH_CS_PIN, FLASH_CS, AO_FLASH_SPI_BUS)