projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: fix functions calling pollchar to use 'int' to hold the value
[fw/altos]
/
src
/
drivers
/
ao_at45db161d.c
diff --git
a/src/drivers/ao_at45db161d.c
b/src/drivers/ao_at45db161d.c
index 5eb25acf29bbf6efaaa4297899f0b9f95a774950..e7e74153db6c46298eba0556e088380d24351f8f 100644
(file)
--- 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)
_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)
#define ao_flash_cs_high() ao_spi_put_bit(FLASH_CS_PORT, FLASH_CS_PIN, FLASH_CS, AO_FLASH_SPI_BUS)