projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Ensure the DFU bootloader disables and clears the activity LED toggle timer when...
[pub/USBasp.git]
/
LUFA
/
Drivers
/
Board
/
XMEGA
/
A3BU_XPLAINED
/
LEDs.h
diff --git
a/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/LEDs.h
b/LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/LEDs.h
index
6f92de2
..
b47199b
100644
(file)
--- a/
LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/LEDs.h
+++ b/
LUFA/Drivers/Board/XMEGA/A3BU_XPLAINED/LEDs.h
@@
-42,6
+42,12
@@
*
* Board specific LED driver header for the Atmel XMEGA A3BU Xplained.
*
*
* Board specific LED driver header for the Atmel XMEGA A3BU Xplained.
*
+ * <table>
+ * <tr><th>Name</th><th>Color</th><th>Info</th><th>Active Level</th><th>Port Pin</th></tr>
+ * <tr><td>LEDS_LED1</td><td>Yellow</td><td>LED0 LED</td><td>Low</td><td>PORTR.0</td></tr>
+ * <tr><td>LEDS_LED2</td><td>Yellow</td><td>LED1 LED</td><td>Low</td><td>PORTR.1</td></tr>
+ * </table>
+ *
* @{
*/
* @{
*/
@@
-79,24
+85,30
@@
#if !defined(__DOXYGEN__)
static inline void LEDs_Init(void)
{
#if !defined(__DOXYGEN__)
static inline void LEDs_Init(void)
{
- PORTR_DIRSET = LEDS_ALL_LEDS;
- PORTR_OUTSET = LEDS_ALL_LEDS;
+ PORTR.DIRSET = LEDS_ALL_LEDS;
+ PORTR.OUTCLR = LEDS_ALL_LEDS;
+
+ PORTCFG.MPCMASK = LEDS_ALL_LEDS;
+ PORTR.PIN0CTRL = PORT_INVEN_bm;
}
static inline void LEDs_Disable(void)
{
}
static inline void LEDs_Disable(void)
{
- PORTR_DIRCLR = LEDS_ALL_LEDS;
- PORTR_OUTCLR = LEDS_ALL_LEDS;
+ PORTR.DIRCLR = LEDS_ALL_LEDS;
+ PORTR.OUTCLR = LEDS_ALL_LEDS;
+
+ PORTCFG.MPCMASK = 0;
+ PORTR.PIN0CTRL = LEDS_ALL_LEDS;
}
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
{
}
static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)
{
- PORTR_OUT
CLR
= LEDMask;
+ PORTR_OUT
SET
= LEDMask;
}
static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask)
{
}
static inline void LEDs_TurnOffLEDs(const uint8_t LEDMask)
{
- PORTR_OUT
SET
= LEDMask;
+ PORTR_OUT
CLR
= LEDMask;
}
static inline void LEDs_SetAllLEDs(const uint8_t LEDMask)
}
static inline void LEDs_SetAllLEDs(const uint8_t LEDMask)