aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders/Printer/BootloaderPrinter.h
diff options
context:
space:
mode:
Diffstat (limited to 'Bootloaders/Printer/BootloaderPrinter.h')
-rw-r--r--Bootloaders/Printer/BootloaderPrinter.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bootloaders/Printer/BootloaderPrinter.h b/Bootloaders/Printer/BootloaderPrinter.h
index 78f938c68..c927ec5ef 100644
--- a/Bootloaders/Printer/BootloaderPrinter.h
+++ b/Bootloaders/Printer/BootloaderPrinter.h
@@ -74,6 +74,13 @@
/** Magic bootloader key to unlock forced application start mode. */
#define MAGIC_BOOT_KEY 0xDC42
+ /* Type Defines: */
+ #if (FLASHEND > 0xFFFF)
+ typedef uint32_t flashaddr_t;
+ #else
+ typedef uint16_t flashaddr_t;
+ #endif
+
/* Enums: */
/** Intel HEX parser state machine states. */
enum HEX_Parser_States_t