Added board hardware driver support for the Arduino Uno development board.

Fixed incorrect LEDs_ChangeLEDs() function in the Benito board LED driver.
This commit is contained in:
Dean Camera 2010-09-28 14:30:26 +00:00
parent b2a30cd48a
commit 25d896a507
8 changed files with 143 additions and 6 deletions

View file

@ -54,7 +54,7 @@
/* Includes: */
#include <avr/io.h>
/* Enable C linkage for C++ Compilers: */
/* Enable C linkage for C++ Compilers: */
#if defined(__cplusplus)
extern "C" {
#endif
@ -104,7 +104,7 @@
static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,
const uint8_t ActiveMask)
{
PORTC = ((PORTC | ActiveMask) & ~LEDMask);
PORTC = ((PORTC | LEDMask) & ~ActiveMask);
}
static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)