/*\r
LUFA Library\r
- Copyright (C) Dean Camera, 2010.\r
+ Copyright (C) Dean Camera, 2011.\r
\r
dean [at] fourwalledcubicle [dot] com\r
www.lufa-lib.org\r
*/\r
\r
/*\r
- Copyright 2010 Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
+ Copyright 2011 Dean Camera (dean [at] fourwalledcubicle [dot] com)\r
\r
Permission to use, copy, modify, distribute, and sell this \r
software and its documentation for any purpose is hereby granted\r
\r
/** \file\r
* \brief Board specific LED driver header for the MINIMUS.\r
- *\r
- * Board specific LED driver header for the Minimus USB (http://www.minimususb.com/).\r
+ * \copydetails Group_LEDs_MINIMUS\r
*\r
* \note This file should not be included directly. It is automatically included as needed by the LEDs driver\r
* dispatch header located in LUFA/Drivers/Board/LEDs.h.\r
*/\r
\r
/** \ingroup Group_LEDs\r
- * @defgroup Group_LEDs_MINIMUS MINIMUS\r
+ * \defgroup Group_LEDs_MINIMUS MINIMUS\r
+ * \brief Board specific LED driver header for the MINIMUS.\r
*\r
* Board specific LED driver header for the Minimus USB (http://www.minimususb.com/).\r
*\r
- * \note This file should not be included directly. It is automatically included as needed by the LEDs driver\r
- * dispatch header located in LUFA/Drivers/Board/LEDs.h.\r
- *\r
* @{\r
*/\r
\r
#define __LEDS_MINIMUS_H__\r
\r
/* Includes: */\r
- #include <avr/io.h>\r
-\r
#include "../../../Common/Common.h"\r
\r
/* Enable C linkage for C++ Compilers: */\r
#if !defined(__DOXYGEN__)\r
static inline void LEDs_Init(void)\r
{\r
- DDRD |= LEDS_ALL_LEDS;\r
- PORTD &= ~LEDS_ALL_LEDS;\r
+ DDRD |= LEDS_ALL_LEDS;\r
+ PORTD |= LEDS_ALL_LEDS;\r
}\r
\r
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)\r
{\r
- PORTD |= LEDMask;\r
+ PORTD &= ~LEDMask;\r
}\r
\r
static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask)\r
{\r
- PORTD &= ~LEDMask;\r
+ PORTD |= LEDMask;\r
}\r
\r
static inline void LEDs_SetAllLEDs(const uint8_t LEDMask)\r
{\r
- PORTD = ((PORTD & ~LEDS_ALL_LEDS) | LEDMask);\r
+ PORTD = ((PORTD | LEDS_ALL_LEDS) & ~LEDMask);\r
}\r
\r
static inline void LEDs_ChangeLEDs(const uint8_t LEDMask,\r
\r
static inline void LEDs_ToggleLEDs(const uint8_t LEDMask)\r
{\r
- PORTD = (PORTD ^ (LEDMask & LEDS_ALL_LEDS));\r
+ PORTD ^= LEDMask;\r
}\r
\r
static inline uint8_t LEDs_GetLEDs(void) ATTR_WARN_UNUSED_RESULT;\r