Added boot section with "BOOT" to allow the bootloader to be recognized

This commit is contained in:
bsongis
2014-04-08 21:19:35 +02:00
parent a4d6a6f5e3
commit 845e6e06ea
2 changed files with 9 additions and 3 deletions
+6 -2
View File
@@ -67,7 +67,7 @@
#include "../translations/en.h"
#if defined(PCBTARANIS)
#define BOOTLOADER_TITLE " OpenTX Boot Loader v1.0"
#define BOOTLOADER_TITLE "Taranis Boot Loader - v1.0"
#define BOOT_KEY_UP KEY_PLUS
#define BOOT_KEY_DOWN KEY_MINUS
#define BOOT_KEY_LEFT KEY_MENU
@@ -76,7 +76,7 @@
#define BOOT_KEY_EXIT KEY_EXIT
#define DISPLAY_CHAR_WIDTH 35
#elif defined(PCBSKY9X)
#define BOOTLOADER_TITLE "Boot Loader - Sky9x"
#define BOOTLOADER_TITLE "Sky9x Boot Loader - v1.0"
#endif
// states
@@ -91,6 +91,10 @@ enum BootLoaderStates {
ST_FLASH_DONE,
ST_USB,
ST_REBOOT,
const uint8_t bootloaderVersion[] __attribute__ ((section(".version"))) =
{
'B', 'O', 'O', 'T', '1', '0'
};
/*----------------------------------------------------------------------------