From 167a7dc6a753b5ba11c8c2ae2a365cec8656c171 Mon Sep 17 00:00:00 2001 From: Dave Hodder Date: Fri, 12 Feb 2016 18:06:50 +0000 Subject: single-page flash storage --- tools/simulator.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools') diff --git a/tools/simulator.c b/tools/simulator.c index 56298d7..0df95ab 100644 --- a/tools/simulator.c +++ b/tools/simulator.c @@ -57,6 +57,16 @@ void hal_send_sysex(u8 port, const u8* data, u16 length) printf("...hal_send_midi(%d, (data), %d);\n", port, length); } +void hal_read_flash(u32 offset, u8 *data, u32 length) +{ + printf("...hal_read_flash(%d, (data), %d);\n", offset, length); +} + +void hal_write_flash(u32 offset,const u8 *data, u32 length) +{ + printf("...hal_write_flash(%d, (data), %d);\n", offset, length); +} + // ____________________________________________________________________________ // // App event wrappers - these just log to the console. Would be nice to wire -- cgit v1.2.1 From 7bd3af99c7518e5e7bcb9c59b01c025b4dbd1cbb Mon Sep 17 00:00:00 2001 From: Dave Hodder Date: Tue, 10 Jan 2017 13:16:33 +0000 Subject: fixed simulator after adding adc api --- tools/simulator.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/simulator.c b/tools/simulator.c index 0df95ab..138277e 100644 --- a/tools/simulator.c +++ b/tools/simulator.c @@ -73,10 +73,12 @@ void hal_write_flash(u32 offset,const u8 *data, u32 length) // these up to a MIDI input from the real Launchpad Pro! // ____________________________________________________________________________ +static u16 raw_ADC[64]; + static void sim_app_init() { printf("calling app_init()...\n"); - app_init(); + app_init(raw_ADC); } static void sim_app_surface_event(u8 type, u8 index, u8 value) -- cgit v1.2.1