summaryrefslogtreecommitdiff
path: root/digital/avr/modules/flash/flash.h
diff options
context:
space:
mode:
authorNélio Laranjeiro2008-03-05 23:48:19 +0100
committerNélio Laranjeiro2008-03-05 23:48:19 +0100
commit93b2480091b13dbea6a1f1a7265cecbb6718aa56 (patch)
tree06364935bd6fcb554fe4200d123f03938df5ea8a /digital/avr/modules/flash/flash.h
parent2697928e9c98c86f862ba86a306f3edc36b385b7 (diff)
Added the polling of the busy device status for the write process.
The function write_array shall be fix in a few time.
Diffstat (limited to 'digital/avr/modules/flash/flash.h')
-rw-r--r--digital/avr/modules/flash/flash.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/digital/avr/modules/flash/flash.h b/digital/avr/modules/flash/flash.h
index a3ef00de..8d72ba43 100644
--- a/digital/avr/modules/flash/flash.h
+++ b/digital/avr/modules/flash/flash.h
@@ -92,6 +92,12 @@ flash_erase (uint8_t cmd, uint32_t start_addr);
void
flash_send_command (uint8_t cmd);
+/** Poll the busy bit in the Software Status Register of the flash memory.
+ * \return the busy bit state.
+ */
+uint8_t
+flash_is_busy (void);
+
/** Write in the flash byte provided in parameter.
* \param data the buffer to store the data.
*/