Commit 5a0bd853 authored by Dean Camera's avatar Dean Camera
Browse files

Fix errors in some board driver LED_Disable() functions.

parent efa5d540
...@@ -105,8 +105,8 @@ ...@@ -105,8 +105,8 @@
static inline void LEDs_Disable(void) static inline void LEDs_Disable(void)
{ {
DDRF |= LEDS_PORTF_LEDS; DDRF &= ~LEDS_PORTF_LEDS;
DDRE |= LEDS_PORTE_LEDS; DDRE &= ~LEDS_PORTE_LEDS;
PORTF &= ~LEDS_PORTF_LEDS; PORTF &= ~LEDS_PORTF_LEDS;
PORTE &= ~LEDS_PORTE_LEDS; PORTE &= ~LEDS_PORTE_LEDS;
......
...@@ -105,8 +105,8 @@ ...@@ -105,8 +105,8 @@
static inline void LEDs_Disable(void) static inline void LEDs_Disable(void)
{ {
DDRD |= LEDS_PORTD_LEDS; DDRD &= ~LEDS_PORTD_LEDS;
DDRC |= LEDS_PORTC_LEDS; DDRC &= ~LEDS_PORTC_LEDS;
PORTD &= ~LEDS_PORTD_LEDS; PORTD &= ~LEDS_PORTD_LEDS;
PORTC &= ~LEDS_PORTC_LEDS; PORTC &= ~LEDS_PORTC_LEDS;
......
...@@ -113,11 +113,11 @@ ...@@ -113,11 +113,11 @@
static inline void LEDs_Disable(void) static inline void LEDs_Disable(void)
{ {
DDRB &= LEDS_PORTB_LEDS; DDRB &= ~LEDS_PORTB_LEDS;
PORTB &= ~LEDS_PORTB_LEDS; PORTB &= ~LEDS_PORTB_LEDS;
DDRD &= (LEDS_PORTD_LEDS << LEDS_PORTD_MASK_SHIFT); DDRD &= ~(LEDS_PORTD_LEDS << LEDS_PORTD_MASK_SHIFT);
PORTD &= ~(LEDS_PORTD_LEDS << LEDS_PORTD_MASK_SHIFT); PORTD &= ~(LEDS_PORTD_LEDS << LEDS_PORTD_MASK_SHIFT);
DDRE &= LEDS_PORTE_LEDS; DDRE &= ~LEDS_PORTE_LEDS;
PORTE &= ~LEDS_PORTE_LEDS; PORTE &= ~LEDS_PORTE_LEDS;
} }
......
...@@ -107,11 +107,11 @@ ...@@ -107,11 +107,11 @@
static inline void LEDs_Disable(void) static inline void LEDs_Disable(void)
{ {
DDRB &= LEDS_PORTB_LEDS; DDRB &= ~LEDS_PORTB_LEDS;
PORTB &= ~LEDS_PORTB_LEDS; PORTB &= ~LEDS_PORTB_LEDS;
DDRD &= LEDS_PORTD_LEDS; DDRD &= ~LEDS_PORTD_LEDS;
PORTD &= ~LEDS_PORTD_LEDS; PORTD &= ~LEDS_PORTD_LEDS;
DDRE &= LEDS_PORTE_LEDS; DDRE &= ~LEDS_PORTE_LEDS;
PORTE &= ~LEDS_PORTE_LEDS; PORTE &= ~LEDS_PORTE_LEDS;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment