projects
/
pub
/
USBaspLoader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BUG: fix flash read error on atmegas with more than 64k memory
[pub/USBaspLoader.git]
/
firmware
/
bootloaderconfig.h
diff --git
a/firmware/bootloaderconfig.h
b/firmware/bootloaderconfig.h
index
7b9a4b7
..
4f3f613
100644
(file)
--- a/
firmware/bootloaderconfig.h
+++ b/
firmware/bootloaderconfig.h
@@
-12,6
+12,7
@@
#ifndef __bootloaderconfig_h_included__
#define __bootloaderconfig_h_included__
#ifndef __bootloaderconfig_h_included__
#define __bootloaderconfig_h_included__
+#include <avr/io.h>
/*
General Description:
/*
General Description:
@@
-274,12
+275,10
@@
static inline void bootLoaderInit(void)
MCUCSR = 0; /* clear all reset flags for next time */
}
MCUCSR = 0; /* clear all reset flags for next time */
}
-#if BOOTLOADER_CAN_EXIT
static inline void bootLoaderExit(void)
{
PIN_PORT(JUMPER_PORT) = 0; /* undo bootLoaderInit() changes */
}
static inline void bootLoaderExit(void)
{
PIN_PORT(JUMPER_PORT) = 0; /* undo bootLoaderInit() changes */
}
-#endif
#define bootLoaderCondition() ((PIN_PIN(JUMPER_PORT) & (1 << PIN(JUMPER_PORT, JUMPER_BIT))) == 0)
#define bootLoaderCondition() ((PIN_PIN(JUMPER_PORT) & (1 << PIN(JUMPER_PORT, JUMPER_BIT))) == 0)