summaryrefslogtreecommitdiff
path: root/digital/avr/modules/flash/flash.h
diff options
context:
space:
mode:
authorNélio Laranjeiro2009-02-23 21:02:49 +0100
committerNélio Laranjeiro2009-02-23 21:02:49 +0100
commitf8a7810ee62c0c41070da8f84e7e087d67dd6610 (patch)
tree883e2aa585d0501e3620f2be6d479abfa9988c94 /digital/avr/modules/flash/flash.h
parent5d7657c852d423988482e7cb5a81905630fbeaa5 (diff)
digital/avr/modules/flash: Added a function to send commands to dump the
memory.
Diffstat (limited to 'digital/avr/modules/flash/flash.h')
-rw-r--r--digital/avr/modules/flash/flash.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/digital/avr/modules/flash/flash.h b/digital/avr/modules/flash/flash.h
index 0468ebdc..47cc882e 100644
--- a/digital/avr/modules/flash/flash.h
+++ b/digital/avr/modules/flash/flash.h
@@ -53,6 +53,13 @@
#define FLASH_TBP_US 10
+enum
+{
+ FLASH_CMD_INIT,
+ FLASH_CMD_READ,
+ FLASH_CMD_NB
+};
+
/** Flash access.
* The flash contains an address of 21 bits in a range from 0x0-0x1fffff.
* This function shall access the memory directly by the SPI.
@@ -141,4 +148,12 @@ flash_read_array (uint32_t addr, uint8_t *buffer, uint32_t length);
void
flash_write_array (uint32_t addr, uint8_t *data, uint32_t length);
+/** Process the logs
+ * \param size the number of arguments.
+ * \param an array of arguments.
+ * \return true on success.
+ */
+uint8_t
+flash_log (uint8_t size, uint8_t *args);
+
#endif /* flash_h */