Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Erik Strand
lufa
Commits
3790907f
Commit
3790907f
authored
Mar 30, 2010
by
Dean Camera
Browse files
Added board hardware driver support for the Benito programmer.
parent
a8cbe346
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
LUFA.pnproj
View file @
3790907f
This diff is collapsed.
Click to expand it.
LUFA/Common/BoardTypes.h
View file @
3790907f
...
...
@@ -98,9 +98,12 @@
/** Selects the Teensy (all versions) specific board drivers, including the driver for the board LEDs. */
#define BOARD_TEENSY 11
/** Selects the USBTINY MKII specific board drivers,
,
including the driver for the board LEDs. */
/** Selects the USBTINY MKII specific board drivers, including the driver for the board LEDs. */
#define BOARD_USBTINYMKII 12
/** Selects the Benito specific board drivers, including the driver for the board LEDs. */
#define BOARD_BENITO 13
#if !defined(__DOXYGEN__)
#define BOARD_ BOARD_NONE
...
...
Projects/Benito/Board
/LEDs.h
→
LUFA/Drivers/Board/BENITO
/LEDs.h
View file @
3790907f
...
...
@@ -28,9 +28,25 @@
this software.
*/
/*
Board LEDs driver for the Benito board, from www.dorkbotpdx.org.
*/
/** \file
* \brief Board specific LED driver header for the Benito.
*
* Board specific LED driver header for the Benito (http://dorkbotpdx.org/wiki/benito).
*
* \note This file should not be included directly. It is automatically included as needed by the LEDs driver
* dispatch header located in LUFA/Drivers/Board/LEDs.h.
*/
/** \ingroup Group_LEDs
* @defgroup Group_LEDs_BENITO BENITO
*
* Board specific LED driver header for the Benito (http://dorkbotpdx.org/wiki/benito).
*
* \note This file should not be included directly. It is automatically included as needed by the LEDs driver
* dispatch header located in LUFA/Drivers/Board/LEDs.h.
*
* @{
*/
#ifndef __LEDS_BENITO_H__
#define __LEDS_BENITO_H__
...
...
@@ -108,3 +124,5 @@
#endif
#endif
/** @} */
LUFA/Drivers/Board/LEDs.h
View file @
3790907f
...
...
@@ -53,7 +53,8 @@
* provides an interface to configure, test and change the status of all the board LEDs.
*
* If the BOARD value is set to BOARD_USER, this will include the /Board/Dataflash.h file in the user project
* directory. Otherwise, it will include the appropriate built in board driver header file.
* directory. Otherwise, it will include the appropriate built in board driver header file. If the BOARD value
* is set to BOARD_NONE, this driver is silently disabled.
*
* \note To make code as compatible as possible, it is assumed that all boards carry a minimum of four LEDs. If
* a board contains less than four LEDs, the remaining LED masks are defined to 0 so as to have no effect.
...
...
@@ -106,6 +107,8 @@
#include "TEENSY/LEDs.h"
#elif (BOARD == BOARD_USBTINYMKII)
#include "USBTINYMKII/LEDs.h"
#elif (BOARD == BOARD_BENITO)
#include "BENITO/LEDs.h"
#elif (BOARD == BOARD_USER)
#include "Board/LEDs.h"
#endif
...
...
LUFA/ManPages/ChangeLog.txt
View file @
3790907f
...
...
@@ -13,6 +13,7 @@
* - Added board hardware driver support for the PJRC Teensy line of USB AVR boards
* - Added new Relay Controller Board project (thanks to OBinou)
* - Added board hardware driver support for Tom's USBTINY MKII programmer
* - Added board hardware driver support for the Benito programmer
*
* <b>Changed:</b>
* - AVRISP programmer project now has a more robust timeout system, allowing for an increase of the software USART speed
...
...
Projects/Benito/makefile
View file @
3790907f
...
...
@@ -66,7 +66,7 @@ MCU = atmega32u2
# Target board (see library "Board Types" documentation, NONE for projects not requiring
# LUFA board drivers). If USER is selected, put custom board drivers in a directory called
# "Board" inside the application directory.
BOARD
=
USER
BOARD
=
BENITO
# Processor frequency.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment