From 93b2480091b13dbea6a1f1a7265cecbb6718aa56 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Wed, 5 Mar 2008 23:48:19 +0100 Subject: Added the polling of the busy device status for the write process. The function write_array shall be fix in a few time. --- digital/avr/modules/flash/flash.h | 6 ++++++ 1 file changed, 6 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 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. */ -- cgit v1.2.3