Fix errors in some board driver LED_Disable() functions.

pull/1469/head
Dean Camera 13 years ago
parent efa5d54093
commit 5a0bd85330

@ -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 @@
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 @@
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 @@
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;
} }

Loading…
Cancel
Save