From f8a7810ee62c0c41070da8f84e7e087d67dd6610 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Mon, 23 Feb 2009 21:02:49 +0100 Subject: digital/avr/modules/flash: Added a function to send commands to dump the memory. --- digital/avr/modules/flash/flash.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'digital/avr/modules/flash/flash.h') 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 */ -- cgit v1.2.3