summaryrefslogtreecommitdiffhomepage
path: root/digital/avr/modules/flash/flash.h
diff options
context:
space:
mode:
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.
*/