diff options
author | Dave Hodder <dave.hodder@focusrite.com> | 2018-11-14 11:28:23 +0000 |
---|---|---|
committer | Dave Hodder <dave.hodder@focusrite.com> | 2018-11-14 11:28:23 +0000 |
commit | 32b77e52d0cd3f7b51fb02f7451c06ff3deb9d40 (patch) | |
tree | 694093598bd2378adfabf9bd0a9ae860b58d548e /include | |
parent | d5843b867fbddf5341469f2cffd123c447fd8aa7 (diff) | |
download | launchpad-polymaker-32b77e52d0cd3f7b51fb02f7451c06ff3deb9d40.tar.gz launchpad-polymaker-32b77e52d0cd3f7b51fb02f7451c06ff3deb9d40.zip |
added hal_read_layout_text() to access bootloader text scroll option
Diffstat (limited to 'include')
-rw-r--r-- | include/app.h | 12 |
1 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); | |||
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 | /** | 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 | */ |
150 | u8 hal_read_device_id(); | 150 | u8 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 | */ | ||
160 | u8 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) |