summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcpldcpu <cpldcpu@gmail.com>2014-02-20 01:16:02 +0100
committercpldcpu <cpldcpu@gmail.com>2014-02-20 01:16:02 +0100
commit5b257aa2044dcc64ca7bfb63fdfdcbefadb42004 (patch)
tree2413e1e1bd288468c89fdb2611920795d892b61a
parent9da799190ee21df5b48c425ac3df0d52613f0c95 (diff)
downloadmicronucleus-5b257aa2044dcc64ca7bfb63fdfdcbefadb42004.tar.gz
micronucleus-5b257aa2044dcc64ca7bfb63fdfdcbefadb42004.tar.bz2
micronucleus-5b257aa2044dcc64ca7bfb63fdfdcbefadb42004.zip
firmware: increase led speed
-rw-r--r--commandline/micronucleus.exebin0 -> 123967 bytes
-rw-r--r--firmware/Makefile2
-rw-r--r--firmware/bootloaderconfig.h4
3 files changed, 3 insertions, 3 deletions
diff --git a/commandline/micronucleus.exe b/commandline/micronucleus.exe
new file mode 100644
index 0000000..1a2e303
--- /dev/null
+++ b/commandline/micronucleus.exe
Binary files differ
diff --git a/firmware/Makefile b/firmware/Makefile
index 3cf8f54..122ee38 100644
--- a/firmware/Makefile
+++ b/firmware/Makefile
@@ -24,7 +24,7 @@ LOCKOPT = -U lock:w:0x2f:m
# - for the size of your device (8kb = 1024 * 8 = 8192) subtract above value 2124... = 6068
# - How many pages in is that? 6068 / 64 (tiny85 page size in bytes) = 94.8125
# - round that down to 94 - our new bootloader address is 94 * 64 = 6016, in hex = 1780
-BOOTLOADER_ADDRESS = 17C0
+BOOTLOADER_ADDRESS = 19C0
PROGRAMMER = -c USBasp
# PROGRAMMER contains AVRDUDE options to address your programmer
diff --git a/firmware/bootloaderconfig.h b/firmware/bootloaderconfig.h
index 0ae3d2b..ff4805f 100644
--- a/firmware/bootloaderconfig.h
+++ b/firmware/bootloaderconfig.h
@@ -183,7 +183,7 @@ these macros are defined, the boot loader uses them.
*
*/
-#define ENTRYMODE ENTRY_ALWAYS
+#define ENTRYMODE ENTRY_EXT_RESET
#define JUMPER_PIN PB0
#define JUMPER_PORT PORTB
@@ -288,7 +288,7 @@ these macros are defined, the boot loader uses them.
// #define LED_INIT(x) LED_PORT &=~_BV(LED_PIN); // Use this with low active LED
#define LED_INIT(x) LED_PORT = _BV(LED_PIN); // Use this with high active LED
#define LED_EXIT(x) LED_DDR &=~_BV(LED_PIN);
- #define LED_MACRO(x) if ( x & 0xd0 ) {LED_DDR&=~_BV(LED_PIN);} else {LED_DDR|=_BV(LED_PIN);}
+ #define LED_MACRO(x) if ( x & 0x58 ) {LED_DDR&=~_BV(LED_PIN);} else {LED_DDR|=_BV(LED_PIN);}
#else
#define LED_INIT(x)
#define LED_EXIT(x)