Fix errors in some board driver LED_Disable() functions.

This commit is contained in:
Dean Camera 2012-07-26 19:16:58 +00:00
parent efa5d54093
commit 5a0bd85330
4 changed files with 10 additions and 10 deletions

View File

@ -105,8 +105,8 @@
static inline void LEDs_Disable(void)
{
DDRF |= LEDS_PORTF_LEDS;
DDRE |= LEDS_PORTE_LEDS;
DDRF &= ~LEDS_PORTF_LEDS;
DDRE &= ~LEDS_PORTE_LEDS;
PORTF &= ~LEDS_PORTF_LEDS;
PORTE &= ~LEDS_PORTE_LEDS;

View File

@ -105,8 +105,8 @@
static inline void LEDs_Disable(void)
{
DDRD |= LEDS_PORTD_LEDS;
DDRC |= LEDS_PORTC_LEDS;
DDRD &= ~LEDS_PORTD_LEDS;
DDRC &= ~LEDS_PORTC_LEDS;
PORTD &= ~LEDS_PORTD_LEDS;
PORTC &= ~LEDS_PORTC_LEDS;

View File

@ -113,11 +113,11 @@
static inline void LEDs_Disable(void)
{
DDRB &= LEDS_PORTB_LEDS;
DDRB &= ~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);
DDRE &= LEDS_PORTE_LEDS;
DDRE &= ~LEDS_PORTE_LEDS;
PORTE &= ~LEDS_PORTE_LEDS;
}

View File

@ -107,11 +107,11 @@
static inline void LEDs_Disable(void)
{
DDRB &= LEDS_PORTB_LEDS;
DDRB &= ~LEDS_PORTB_LEDS;
PORTB &= ~LEDS_PORTB_LEDS;
DDRD &= LEDS_PORTD_LEDS;
DDRD &= ~LEDS_PORTD_LEDS;
PORTD &= ~LEDS_PORTD_LEDS;
DDRE &= LEDS_PORTE_LEDS;
DDRE &= ~LEDS_PORTE_LEDS;
PORTE &= ~LEDS_PORTE_LEDS;
}