From: Dean Camera Date: Sat, 3 Oct 2015 12:12:56 +0000 (+1000) Subject: Merge pull request #46 from NicoHood/patch-1 X-Git-Tag: LUFA-151115~14 X-Git-Url: http://git.linex4red.de/pub/USBasp.git/commitdiff_plain/8f33ba8237301e1053c72ee125cf721e5dd837e6?hp=-c Merge pull request #46 from NicoHood/patch-1 Update Arduino Uno board definitions (thanks to NicoHood). --- 8f33ba8237301e1053c72ee125cf721e5dd837e6 diff --combined LUFA/Drivers/Board/AVR8/UNO/Board.h index 93bece499,38e2cb053..5444eacd5 --- a/LUFA/Drivers/Board/AVR8/UNO/Board.h +++ b/LUFA/Drivers/Board/AVR8/UNO/Board.h @@@ -1,13 -1,13 +1,13 @@@ /* LUFA Library - Copyright (C) Dean Camera, 2014. + Copyright (C) Dean Camera, 2015. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* - Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com) + Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted @@@ -66,6 -66,12 +66,12 @@@ /* Macros: */ /** Indicates the board has hardware LEDs mounted. */ #define BOARD_HAS_LEDS + + /** Pin that can reset the main MCU. */ + #define AVR_RESET_LINE_PORT PORTD + #define AVR_RESET_LINE_DDR DDRD + #define AVR_RESET_LINE_PIN PIND + #define AVR_RESET_LINE_MASK (1 << PD7) /* Disable C linkage for C++ Compilers: */ #if defined(__cplusplus) diff --combined LUFA/Drivers/Board/AVR8/UNO/LEDs.h index eb5e9fb39,28c0747a3..7309b93ee --- a/LUFA/Drivers/Board/AVR8/UNO/LEDs.h +++ b/LUFA/Drivers/Board/AVR8/UNO/LEDs.h @@@ -1,13 -1,13 +1,13 @@@ /* LUFA Library - Copyright (C) Dean Camera, 2014. + Copyright (C) Dean Camera, 2015. dean [at] fourwalledcubicle [dot] com www.lufa-lib.org */ /* - Copyright 2014 Dean Camera (dean [at] fourwalledcubicle [dot] com) + Copyright 2015 Dean Camera (dean [at] fourwalledcubicle [dot] com) Permission to use, copy, modify, distribute, and sell this software and its documentation for any purpose is hereby granted @@@ -44,8 -44,8 +44,8 @@@ * * * - * - * + * + * *
NameColorInfoActive LevelPort Pin
LEDS_LED1YellowRXLowPORTD.4
LEDS_LED2YellowTXLowPORTD.5
LEDS_LED1YellowRXLowPORTD.5
LEDS_LED2YellowTXLowPORTD.4
* * @{ @@@ -70,16 -70,22 +70,22 @@@ /* Public Interface - May be used in end-application: */ /* Macros: */ /** LED mask for the first LED on the board. */ - #define LEDS_LED1 (1 << 4) + #define LEDS_LED1 (1 << 5) /** LED mask for the second LED on the board. */ - #define LEDS_LED2 (1 << 5) + #define LEDS_LED2 (1 << 4) /** LED mask for all the LEDs on the board. */ #define LEDS_ALL_LEDS (LEDS_LED1 | LEDS_LED2) /** LED mask for none of the board LEDs. */ #define LEDS_NO_LEDS 0 + + /** LED mask for the library LED driver, to indicate TX activity. */ + #define LEDMASK_TX LEDS_LED1 + + /** LED mask for the library LED driver, to indicate RX activity. */ + #define LEDMASK_RX LEDS_LED2 /* Inline Functions: */ #if !defined(__DOXYGEN__) @@@ -92,7 -98,7 +98,7 @@@ static inline void LEDs_Disable(void) { DDRD &= ~LEDS_ALL_LEDS; - PORTD &= ~LEDS_ALL_LEDS; + PORTD |= LEDS_ALL_LEDS; } static inline void LEDs_TurnOnLEDs(const uint8_t LEDMask)