projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CI: Build on Arch (bleeding-ege) and Ubuntu (stable) AVR-GCC toolchains.
[pub/USBasp.git]
/
Bootloaders
/
Printer
/
BootloaderPrinter.h
diff --git
a/Bootloaders/Printer/BootloaderPrinter.h
b/Bootloaders/Printer/BootloaderPrinter.h
index
54d96e0
..
c927ec5
100644
(file)
--- a/
Bootloaders/Printer/BootloaderPrinter.h
+++ b/
Bootloaders/Printer/BootloaderPrinter.h
@@
-41,6
+41,7
@@
#include <avr/wdt.h>
#include <avr/power.h>
#include <avr/interrupt.h>
#include <avr/wdt.h>
#include <avr/power.h>
#include <avr/interrupt.h>
+ #include <util/delay.h>
#include "Descriptors.h"
#include "BootloaderAPI.h"
#include "Descriptors.h"
#include "BootloaderAPI.h"
@@
-73,6
+74,13
@@
/** Magic bootloader key to unlock forced application start mode. */
#define MAGIC_BOOT_KEY 0xDC42
/** 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
/* Enums: */
/** Intel HEX parser state machine states. */
enum HEX_Parser_States_t