projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosuilib: Show state.product if state.device_type isn't set
[fw/altos]
/
src
/
drivers
/
ao_25lc1024.c
diff --git
a/src/drivers/ao_25lc1024.c
b/src/drivers/ao_25lc1024.c
index b25d52c4e7e7e529325ca84ce056885c3485dd2f..fac0a430f1b97406fefa92d31a4936c5b2fd2aa9 100644
(file)
--- a/
src/drivers/ao_25lc1024.c
+++ b/
src/drivers/ao_25lc1024.c
@@
-50,7
+50,7
@@
static __xdata uint8_t ao_ee_mutex;
_asm nop _endasm; \
} while(0)
_asm nop _endasm; \
} while(0)
-#define ao_ee_cs_low() ao_spi_get_bit(EE_CS_PORT, EE_CS_PIN, EE_CS, AO_EE_SPI_BUS)
+#define ao_ee_cs_low() ao_spi_get_bit(EE_CS_PORT, EE_CS_PIN, EE_CS, AO_EE_SPI_BUS
, AO_SPI_SPEED_FAST
)
#define ao_ee_cs_high() ao_spi_put_bit(EE_CS_PORT, EE_CS_PIN, EE_CS, AO_EE_SPI_BUS)
#define ao_ee_cs_high() ao_spi_put_bit(EE_CS_PORT, EE_CS_PIN, EE_CS, AO_EE_SPI_BUS)
@@
-236,5
+236,5
@@
void
ao_storage_device_init(void)
{
/* set up CS */
ao_storage_device_init(void)
{
/* set up CS */
- ao_enable_output(EE_CS_PORT, EE_CS_PIN,1);
+ ao_enable_output(EE_CS_PORT, EE_CS_PIN,
EE_CS,
1);
}
}