From 32b77e52d0cd3f7b51fb02f7451c06ff3deb9d40 Mon Sep 17 00:00:00 2001 From: Dave Hodder Date: Wed, 14 Nov 2018 11:28:23 +0000 Subject: added hal_read_layout_text() to access bootloader text scroll option --- include/app.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include') 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); void hal_write_flash(u32 offset,const u8 *data, u32 length); /** - * Retrieve the device ID + * Retrieve the device ID bootloader option * * Users can set a unique ID from 1-16 in the bootloader. This is useful * 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); */ u8 hal_read_device_id(); +/** + * Retrieve the "layout text" bootloader option + * + * This setting determines whether the factory firmware will scroll text on changing + * layouts. This may be useful as a preference for open firmware apps as well. + * + * @result 1 to scroll text on layout changes, 0 not to. + */ +u8 hal_read_layout_text(); + // ____________________________________________________________________________ // // Callbacks from the hardware (implemented in your app.c) -- cgit v1.2.1