diff options
author | cpldcpu <cpldcpu@gmail.com> | 2014-02-20 01:16:02 +0100 |
---|---|---|
committer | cpldcpu <cpldcpu@gmail.com> | 2014-02-20 01:16:02 +0100 |
commit | 5b257aa2044dcc64ca7bfb63fdfdcbefadb42004 (patch) | |
tree | 2413e1e1bd288468c89fdb2611920795d892b61a /firmware | |
parent | 9da799190ee21df5b48c425ac3df0d52613f0c95 (diff) | |
download | micronucleus-5b257aa2044dcc64ca7bfb63fdfdcbefadb42004.tar.gz micronucleus-5b257aa2044dcc64ca7bfb63fdfdcbefadb42004.tar.bz2 micronucleus-5b257aa2044dcc64ca7bfb63fdfdcbefadb42004.zip |
firmware: increase led speed
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/Makefile | 2 | ||||
-rw-r--r-- | firmware/bootloaderconfig.h | 4 |
2 files changed, 3 insertions, 3 deletions
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) |