summaryrefslogtreecommitdiff
path: root/src/at45db161d.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-01-06 12:51:39 -0800
committerKeith Packard <keithp@keithp.com>2011-01-06 12:51:39 -0800
commitddcc94da4326f9ce954bd31a46b36165c58e6c18 (patch)
tree808d9c89e1d43e22017655217e730e54d79ed397 /src/at45db161d.h
parentf3f1b1488bdc92fa9277dc549ba9f3210a8d4c8c (diff)
altos: Simplify storage API
This removes the config-specific APIs and exposes global variables for the available storage space, block size and config storage location. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/at45db161d.h')
-rw-r--r--src/at45db161d.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/at45db161d.h b/src/at45db161d.h
index 8b72e647..96042459 100644
--- a/src/at45db161d.h
+++ b/src/at45db161d.h
@@ -26,13 +26,6 @@
* area return errors.
*/
-#define FLASH_BLOCK_SIZE_MAX 512
-#define FLASH_BLOCK_SHIFT (ao_flash_block_shift)
-#define FLASH_BLOCK_SIZE (ao_flash_block_size)
-#define FLASH_BLOCK_MASK (FLASH_BLOCK_SIZE - 1)
-#define FLASH_DEVICE_SIZE (ao_flash_device_size)
-#define FLASH_DATA_SIZE (FLASH_DEVICE_SIZE - (uint32_t) FLASH_BLOCK_SIZE)
-#define FLASH_CONFIG_BLOCK ((uint16_t) (FLASH_DATA_SIZE / FLASH_BLOCK_SIZE))
#define FLASH_READ 0x03
#define FLASH_WRITE 0x82