summaryrefslogtreecommitdiff
path: root/src/at45db161d.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-01-06 22:37:38 -0800
committerKeith Packard <keithp@keithp.com>2011-01-06 22:37:38 -0800
commit569a1dac55b70c30f01afa7bcb74442ecdd85d85 (patch)
tree197d6048f3b6694aeaf1f23f4605d494757902f5 /src/at45db161d.h
parente4ba9bf4291bf17c777c8c3ef7c71e4a30b9947a (diff)
altos: Move common storage code to ao_storage.c. Add M25P80 driver
This reworks the storage API so that you erase blocks and then store data to them so that the M25P80 driver will work. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/at45db161d.h')
-rw-r--r--src/at45db161d.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/at45db161d.h b/src/at45db161d.h
index 96042459..9ee6f1b6 100644
--- a/src/at45db161d.h
+++ b/src/at45db161d.h
@@ -29,6 +29,7 @@
#define FLASH_READ 0x03
#define FLASH_WRITE 0x82
+#define FLASH_PAGE_ERASE 0x81
#define FLASH_READ_STATUS 0xd7
#define FLASH_SET_CONFIG 0x3d