summaryrefslogtreecommitdiffhomepage
path: root/digital/avr/modules/flash/test
diff options
context:
space:
mode:
authorNélio Laranjeiro2009-05-11 22:06:51 +0200
committerNélio Laranjeiro2009-05-11 22:06:51 +0200
commitcadf1a3749fc51d266e9672fdecf1c8cd69c92a3 (patch)
treebabc2c77cbafce99c803215c7d56d443dd8f7119 /digital/avr/modules/flash/test
parentb12be58d4044e50127597e7d0f4db0f16cafdcdc (diff)
* digital/avr/modules/flash: (Closes #68).
* Removed the flash stub sub directory and add a real stub in flash.host.c file.
Diffstat (limited to 'digital/avr/modules/flash/test')
-rw-r--r--digital/avr/modules/flash/test/Makefile8
-rw-r--r--digital/avr/modules/flash/test/test-flash.c10
2 files changed, 6 insertions, 12 deletions
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)
{