From 32ed04c7e1435b8019974ac0671a6896e2786f31 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Tue, 12 Jan 2010 23:51:26 +0100 Subject: 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. --- digital/avr/modules/flash/test/test-flash.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'digital/avr/modules/flash/test') 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. */ -- cgit v1.2.3