diff options
author | Dave Hodder <dave.hodder@focusrite.com> | 2017-11-20 13:54:16 +0000 |
---|---|---|
committer | Dave Hodder <dave.hodder@focusrite.com> | 2017-11-20 13:54:16 +0000 |
commit | d910a607b308c5ed02e476a5051fac184f61c86f (patch) | |
tree | da05174d3c8c6846359e4d16f0cee06bb4703aba /tools | |
parent | af0c758cceb310b69c9192d7cdc8133ba63a3f98 (diff) | |
parent | 7ff741e4206b75e941aa982360402bc8f8e58198 (diff) | |
download | launchpad-polymaker-d910a607b308c5ed02e476a5051fac184f61c86f.tar.gz launchpad-polymaker-d910a607b308c5ed02e476a5051fac184f61c86f.zip |
Merge branch 'raw-adc' (bringing in ADC and flash access)
Diffstat (limited to 'tools')
-rw-r--r-- | tools/simulator.c | 14 |
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 | ||
60 | void hal_read_flash(u32 offset, u8 *data, u32 length) | ||
61 | { | ||
62 | printf("...hal_read_flash(%d, (data), %d);\n", offset, length); | ||
63 | } | ||
64 | |||
65 | void 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 | ||
76 | static u16 raw_ADC[64]; | ||
77 | |||
66 | static void sim_app_init() | 78 | static 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 | ||
72 | static void sim_app_surface_event(u8 type, u8 index, u8 value) | 84 | static void sim_app_surface_event(u8 type, u8 index, u8 value) |