summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Hodder <dave.hodder@focusrite.com>2018-11-14 11:28:23 +0000
committerDave Hodder <dave.hodder@focusrite.com>2018-11-14 11:28:23 +0000
commit32b77e52d0cd3f7b51fb02f7451c06ff3deb9d40 (patch)
tree694093598bd2378adfabf9bd0a9ae860b58d548e
parentd5843b867fbddf5341469f2cffd123c447fd8aa7 (diff)
downloadlaunchpad-polymaker-32b77e52d0cd3f7b51fb02f7451c06ff3deb9d40.tar.gz
launchpad-polymaker-32b77e52d0cd3f7b51fb02f7451c06ff3deb9d40.zip
added hal_read_layout_text() to access bootloader text scroll option
-rw-r--r--include/app.h12
-rw-r--r--lib/launchpad_pro.abin179888 -> 180180 bytes
2 files changed, 11 insertions, 1 deletions
diff --git a/include/app.h b/include/app.h
index fdea133..6752b62 100644
--- a/include/app.h
+++ b/include/app.h
@@ -140,7 +140,7 @@ void hal_read_flash(u32 offset, u8 *data, u32 length);
140void hal_write_flash(u32 offset,const u8 *data, u32 length); 140void hal_write_flash(u32 offset,const u8 *data, u32 length);
141 141
142/** 142/**
143 * Retrieve the device ID 143 * Retrieve the device ID bootloader option
144 * 144 *
145 * Users can set a unique ID from 1-16 in the bootloader. This is useful 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. 146 * for USB apps, as it helps multi-Launchpad setups behave predictably.
@@ -149,6 +149,16 @@ void hal_write_flash(u32 offset,const u8 *data, u32 length);
149 */ 149 */
150u8 hal_read_device_id(); 150u8 hal_read_device_id();
151 151
152/**
153 * Retrieve the "layout text" bootloader option
154 *
155 * This setting determines whether the factory firmware will scroll text on changing
156 * layouts. This may be useful as a preference for open firmware apps as well.
157 *
158 * @result 1 to scroll text on layout changes, 0 not to.
159 */
160u8 hal_read_layout_text();
161
152// ____________________________________________________________________________ 162// ____________________________________________________________________________
153// 163//
154// Callbacks from the hardware (implemented in your app.c) 164// Callbacks from the hardware (implemented in your app.c)
diff --git a/lib/launchpad_pro.a b/lib/launchpad_pro.a
index 1d4686d..c2afa5a 100644
--- a/lib/launchpad_pro.a
+++ b/lib/launchpad_pro.a
Binary files differ