Add support for the XMEGA C3 Xplained board.

This commit is contained in:
Dean Camera 2013-05-20 00:06:13 +02:00
parent 8474262728
commit fdf50e9411
12 changed files with 377 additions and 29 deletions

View file

@ -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