summaryrefslogtreecommitdiffhomepage
path: root/digital/avr/modules/flash/test/test-flash.c
diff options
context:
space:
mode:
authorNélio Laranjeiro2010-01-12 23:51:26 +0100
committerNélio Laranjeiro2010-01-12 23:51:26 +0100
commit32ed04c7e1435b8019974ac0671a6896e2786f31 (patch)
treed3e9300a81c32838a938d4b6ec827611f8871b46 /digital/avr/modules/flash/test/test-flash.c
parent0f278970130103b1df4a2b308359943520f10987 (diff)
digital/avr/modules/flash: flash sst driver
Modify flash source code to initialise the SPI interface and detect the flash type using JDEC. Once the JDEC is read the flash driver initialise functions pointers to pilot the flash memory. The final objective is to have several flash support.
Diffstat (limited to 'digital/avr/modules/flash/test/test-flash.c')
-rw-r--r--digital/avr/modules/flash/test/test-flash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/digital/avr/modules/flash/test/test-flash.c b/digital/avr/modules/flash/test/test-flash.c
index 99b12df2..92fb69f7 100644
--- a/digital/avr/modules/flash/test/test-flash.c
+++ b/digital/avr/modules/flash/test/test-flash.c
@@ -51,16 +51,12 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args)
case c ('e', 3):
/* Erase 4k:
* - 3b: address. */
- flash_erase (FLASH_ERASE_4K, addr);
+ flash_erase (FLASH_ERASE_PAGE, addr);
break;
case c ('s', 0):
/* print flash status */
proto_send1b ('s', flash_read_status());
break;
- case c ('w', 0):
- /* Send the write enable flash command. */
- flash_send_command (FLASH_WREN);
- break;
case c ('r', 3):
/* Read one byte:
* - 3b: address. */