summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/simulator.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/simulator.c b/tools/simulator.c
index 56298d7..138277e 100644
--- a/tools/simulator.c
+++ b/tools/simulator.c
@@ -57,16 +57,28 @@ void hal_send_sysex(u8 port, const u8* data, u16 length)
57 printf("...hal_send_midi(%d, (data), %d);\n", port, length); 57 printf("...hal_send_midi(%d, (data), %d);\n", port, length);
58} 58}
59 59
60void hal_read_flash(u32 offset, u8 *data, u32 length)
61{
62 printf("...hal_read_flash(%d, (data), %d);\n", offset, length);
63}
64
65void hal_write_flash(u32 offset,const u8 *data, u32 length)
66{
67 printf("...hal_write_flash(%d, (data), %d);\n", offset, length);
68}
69
60// ____________________________________________________________________________ 70// ____________________________________________________________________________
61// 71//
62// App event wrappers - these just log to the console. Would be nice to wire 72// App event wrappers - these just log to the console. Would be nice to wire
63// these up to a MIDI input from the real Launchpad Pro! 73// these up to a MIDI input from the real Launchpad Pro!
64// ____________________________________________________________________________ 74// ____________________________________________________________________________
65 75
76static u16 raw_ADC[64];
77
66static void sim_app_init() 78static void sim_app_init()
67{ 79{
68 printf("calling app_init()...\n"); 80 printf("calling app_init()...\n");
69 app_init(); 81 app_init(raw_ADC);
70} 82}
71 83
72static void sim_app_surface_event(u8 type, u8 index, u8 value) 84static void sim_app_surface_event(u8 type, u8 index, u8 value)