summaryrefslogtreecommitdiff
path: root/src/drivers/ao_at45db161d.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-26 23:01:58 -0700
committerKeith Packard <keithp@keithp.com>2012-06-26 23:01:58 -0700
commit03dc80d15a2f8fe9d7340351226dadd8bc3cfdb9 (patch)
treec7b1e429181961dbdc5f2e701b22b6950abaa860 /src/drivers/ao_at45db161d.c
parentf11f05c5d634de2a80c34d0d3dc93925980f52e6 (diff)
altos: Clean up usage of port parameters
Make stm port parameters always be pointers; this avoids the confusion where some macros took '&port' and others took a bare 'port', and also unifies code to run on other processors in a consistent fashion. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_at45db161d.c')
-rw-r--r--src/drivers/ao_at45db161d.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/ao_at45db161d.c b/src/drivers/ao_at45db161d.c
index afe0080b..5eb25acf 100644
--- a/src/drivers/ao_at45db161d.c
+++ b/src/drivers/ao_at45db161d.c
@@ -43,9 +43,9 @@ __xdata uint8_t ao_flash_mutex;
_asm nop _endasm; \
} while(0)
-#define ao_flash_cs_low() ao_spi_get_bit(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)
-#define ao_flash_cs_high() ao_spi_put_bit(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)
struct ao_flash_instruction {
uint8_t instruction;