Add support for the XMEGA C3 Xplained board.
This commit is contained in:
parent
8474262728
commit
fdf50e9411
12 changed files with 377 additions and 29 deletions
|
|
@ -68,13 +68,13 @@
|
|||
* \code
|
||||
* // Initialize the button driver before first use
|
||||
* Buttons_Init();
|
||||
*
|
||||
*
|
||||
* printf("Waiting for button press...\r\n");
|
||||
*
|
||||
*
|
||||
* // Loop until a board button has been pressed
|
||||
* uint8_t ButtonPress;
|
||||
* while (!(ButtonPress = Buttons_GetStatus())) {};
|
||||
*
|
||||
*
|
||||
* // Display which button was pressed (assuming two board buttons)
|
||||
* printf("Button pressed: %s\r\n", (ButtonPress == BUTTONS_BUTTON1) ? "Button 1" : "Button 2");
|
||||
* \endcode
|
||||
|
|
@ -153,6 +153,8 @@
|
|||
#include "UC3/UC3A3_XPLAINED/Buttons.h"
|
||||
#elif (BOARD == BOARD_STANGE_ISP)
|
||||
#include "AVR8/STANGE_ISP/Buttons.h"
|
||||
#elif (BOARD == BOARD_C3_XPLAINED)
|
||||
#include "XMEGA/C3_XPLAINED/Buttons.h"
|
||||
#else
|
||||
#include "Board/Buttons.h"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue