diff options
author | Dave Hodder <dave.hodder@focusrite.com> | 2018-11-14 11:13:20 +0000 |
---|---|---|
committer | Dave Hodder <dave.hodder@focusrite.com> | 2018-11-14 11:13:20 +0000 |
commit | d5843b867fbddf5341469f2cffd123c447fd8aa7 (patch) | |
tree | 54f0ed5d9f930014800078bd8f8b3ee30df25960 | |
parent | 665a064c16e902344eaf3f1a1c62c8cea35bf22c (diff) | |
download | launchpad-polymaker-d5843b867fbddf5341469f2cffd123c447fd8aa7.tar.gz launchpad-polymaker-d5843b867fbddf5341469f2cffd123c447fd8aa7.zip |
added hal_read_device_id() to retrieve bootloader ID in firmware
-rw-r--r-- | include/app.h | 10 | ||||
-rw-r--r-- | lib/launchpad_pro.a | bin | 179592 -> 179888 bytes |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/app.h b/include/app.h index b06f7a6..fdea133 100644 --- a/include/app.h +++ b/include/app.h | |||
@@ -139,6 +139,16 @@ void hal_read_flash(u32 offset, u8 *data, u32 length); | |||
139 | */ | 139 | */ |
140 | void hal_write_flash(u32 offset,const u8 *data, u32 length); | 140 | void hal_write_flash(u32 offset,const u8 *data, u32 length); |
141 | 141 | ||
142 | /** | ||
143 | * Retrieve the device ID | ||
144 | * | ||
145 | * Users can set a unique ID from 1-16 in the bootloader. This is useful | ||
146 | * for USB apps, as it helps multi-Launchpad setups behave predictably. | ||
147 | * | ||
148 | * @result the zero-based device ID [0-15] assigned to this Launchpad Pro. | ||
149 | */ | ||
150 | u8 hal_read_device_id(); | ||
151 | |||
142 | // ____________________________________________________________________________ | 152 | // ____________________________________________________________________________ |
143 | // | 153 | // |
144 | // Callbacks from the hardware (implemented in your app.c) | 154 | // Callbacks from the hardware (implemented in your app.c) |
diff --git a/lib/launchpad_pro.a b/lib/launchpad_pro.a index 70b470c..1d4686d 100644 --- a/lib/launchpad_pro.a +++ b/lib/launchpad_pro.a | |||
Binary files differ | |||