summaryrefslogtreecommitdiff
path: root/digital/avr/modules/flash/test
diff options
context:
space:
mode:
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)
{