diff options
author | cpldcpu <cpldcpu@gmail.com> | 2016-02-14 01:52:46 +0100 |
---|---|---|
committer | cpldcpu <cpldcpu@gmail.com> | 2016-02-14 01:52:46 +0100 |
commit | f5d3b41ae2873647d9dbd2e642217c3989d1b1a5 (patch) | |
tree | 7c6568b73b3fcc37a8f1e97ecb1178e34646c0a9 /firmware/configuration | |
parent | 24d371d5e75bf55a70a412a9f544a19614ff56f4 (diff) | |
download | micronucleus-f5d3b41ae2873647d9dbd2e642217c3989d1b1a5.tar.gz micronucleus-f5d3b41ae2873647d9dbd2e642217c3989d1b1a5.tar.bz2 micronucleus-f5d3b41ae2873647d9dbd2e642217c3989d1b1a5.zip |
firmware: Fix LED_INIT macro for active high
Diffstat (limited to 'firmware/configuration')
6 files changed, 6 insertions, 6 deletions
diff --git a/firmware/configuration/BitBoss/bootloaderconfig.h b/firmware/configuration/BitBoss/bootloaderconfig.h index 0e6d6af..de35357 100644 --- a/firmware/configuration/BitBoss/bootloaderconfig.h +++ b/firmware/configuration/BitBoss/bootloaderconfig.h @@ -235,7 +235,7 @@ #define ACTIVE_LOW 2 #if LED_MODE==ACTIVE_HIGH - #define LED_INIT(x) LED_DDR = _BV(LED_PIN); + #define LED_INIT(x) LED_DDR |= _BV(LED_PIN); #define LED_EXIT(x) {LED_DDR &=~_BV(LED_PIN);LED_PORT &=~_BV(LED_PIN);} #define LED_MACRO(x) if ( x & 0x4c ) {LED_PORT&=~_BV(LED_PIN);} else {LED_PORT|=_BV(LED_PIN);} #elif LED_MODE==ACTIVE_LOW diff --git a/firmware/configuration/Nanite841/bootloaderconfig.h b/firmware/configuration/Nanite841/bootloaderconfig.h index 930d9ef..c081aad 100644 --- a/firmware/configuration/Nanite841/bootloaderconfig.h +++ b/firmware/configuration/Nanite841/bootloaderconfig.h @@ -239,7 +239,7 @@ #define ACTIVE_LOW 2 #if LED_MODE==ACTIVE_HIGH - #define LED_INIT(x) LED_DDR = _BV(LED_PIN); + #define LED_INIT(x) LED_DDR |= _BV(LED_PIN); #define LED_EXIT(x) {LED_DDR &=~_BV(LED_PIN);LED_PORT &=~_BV(LED_PIN);} #define LED_MACRO(x) if ( x & 0x4c ) {LED_PORT&=~_BV(LED_PIN);} else {LED_PORT|=_BV(LED_PIN);} #elif LED_MODE==ACTIVE_LOW diff --git a/firmware/configuration/t167_default/bootloaderconfig.h b/firmware/configuration/t167_default/bootloaderconfig.h index 106fe93..0eab4ee 100644 --- a/firmware/configuration/t167_default/bootloaderconfig.h +++ b/firmware/configuration/t167_default/bootloaderconfig.h @@ -243,7 +243,7 @@ #define ACTIVE_LOW 2 #if LED_MODE==ACTIVE_HIGH - #define LED_INIT(x) LED_DDR = _BV(LED_PIN); + #define LED_INIT(x) LED_DDR |= _BV(LED_PIN); #define LED_EXIT(x) {LED_DDR &=~_BV(LED_PIN);LED_PORT &=~_BV(LED_PIN);} #define LED_MACRO(x) if ( x & 0x4c ) {LED_PORT&=~_BV(LED_PIN);} else {LED_PORT|=_BV(LED_PIN);} #elif LED_MODE==ACTIVE_LOW diff --git a/firmware/configuration/t841_default/bootloaderconfig.h b/firmware/configuration/t841_default/bootloaderconfig.h index 6dfe795..ed09e1d 100644 --- a/firmware/configuration/t841_default/bootloaderconfig.h +++ b/firmware/configuration/t841_default/bootloaderconfig.h @@ -235,7 +235,7 @@ #define ACTIVE_LOW 2 #if LED_MODE==ACTIVE_HIGH - #define LED_INIT(x) LED_DDR = _BV(LED_PIN); + #define LED_INIT(x) LED_DDR |= _BV(LED_PIN); #define LED_EXIT(x) {LED_DDR &=~_BV(LED_PIN);LED_PORT &=~_BV(LED_PIN);} #define LED_MACRO(x) if ( x & 0x4c ) {LED_PORT&=~_BV(LED_PIN);} else {LED_PORT|=_BV(LED_PIN);} #elif LED_MODE==ACTIVE_LOW diff --git a/firmware/configuration/t85_aggressive/bootloaderconfig.h b/firmware/configuration/t85_aggressive/bootloaderconfig.h index 5cd1266..0af18f5 100644 --- a/firmware/configuration/t85_aggressive/bootloaderconfig.h +++ b/firmware/configuration/t85_aggressive/bootloaderconfig.h @@ -230,7 +230,7 @@ #define ACTIVE_LOW 2 #if LED_MODE==ACTIVE_HIGH - #define LED_INIT(x) LED_DDR = _BV(LED_PIN); + #define LED_INIT(x) LED_DDR |= _BV(LED_PIN); #define LED_EXIT(x) {LED_DDR &=~_BV(LED_PIN);LED_PORT &=~_BV(LED_PIN);} #define LED_MACRO(x) if ( x & 0x4c ) {LED_PORT&=~_BV(LED_PIN);} else {LED_PORT|=_BV(LED_PIN);} #elif LED_MODE==ACTIVE_LOW diff --git a/firmware/configuration/t85_default/bootloaderconfig.h b/firmware/configuration/t85_default/bootloaderconfig.h index f86b3ac..9b3ac63 100644 --- a/firmware/configuration/t85_default/bootloaderconfig.h +++ b/firmware/configuration/t85_default/bootloaderconfig.h @@ -227,7 +227,7 @@ #define ACTIVE_LOW 2 #if LED_MODE==ACTIVE_HIGH - #define LED_INIT(x) LED_DDR = _BV(LED_PIN); + #define LED_INIT(x) LED_DDR |= _BV(LED_PIN); #define LED_EXIT(x) {LED_DDR &=~_BV(LED_PIN);LED_PORT &=~_BV(LED_PIN);} #define LED_MACRO(x) if ( x & 0x4c ) {LED_PORT&=~_BV(LED_PIN);} else {LED_PORT|=_BV(LED_PIN);} #elif LED_MODE==ACTIVE_LOW |