From cadf1a3749fc51d266e9672fdecf1c8cd69c92a3 Mon Sep 17 00:00:00 2001 From: NĂ©lio Laranjeiro Date: Mon, 11 May 2009 22:06:51 +0200 Subject: * digital/avr/modules/flash: (Closes #68). * Removed the flash stub sub directory and add a real stub in flash.host.c file. --- digital/avr/modules/flash/test/Makefile | 8 ++++++-- digital/avr/modules/flash/test/test-flash.c | 10 ---------- 2 files changed, 6 insertions(+), 12 deletions(-) (limited to 'digital/avr/modules/flash/test') diff --git a/digital/avr/modules/flash/test/Makefile b/digital/avr/modules/flash/test/Makefile index 33ad8001..0201fdff 100644 --- a/digital/avr/modules/flash/test/Makefile +++ b/digital/avr/modules/flash/test/Makefile @@ -1,8 +1,12 @@ BASE = ../../.. -AVR_PROGS = test-flash flash_dump + +HOST_PROGS = test_flash +test_flash_SOURCES = test-flash.c + +AVR_PROGS = test-flash flash-dump test-flash_SOURCES = test-flash.c -flash_dump_SOURCES = flash-dump.c +flash-dump_SOURCES = flash-dump.c MODULES = utils spi flash proto uart CONFIGFILE = avrconfig.h diff --git a/digital/avr/modules/flash/test/test-flash.c b/digital/avr/modules/flash/test/test-flash.c index a504d6c1..461096c3 100644 --- a/digital/avr/modules/flash/test/test-flash.c +++ b/digital/avr/modules/flash/test/test-flash.c @@ -86,16 +86,6 @@ proto_callback (uint8_t cmd, uint8_t size, uint8_t *args) * - 1b: byte. */ flash_write (addr, args[3]); break; - case c ('p', 0): - /* Find the next page to write. */ - addr = flash_first_sector (); - proto_send3b ('p', addr >> 16, addr >> 8, addr); - break; - case c ('c', 3): - /* Compute the next page. */ - addr = FLASH_PAGE (addr); - proto_send3b ('c', addr >> 16, addr >> 8, addr); - break; default: if (cmd == 'w' && size > 4) { -- cgit v1.2.3