Add code template for the new board hardware information driver.
This commit is contained in:
parent
bc8e686e51
commit
a05dd56239
3 changed files with 173 additions and 8 deletions
|
@ -29,6 +29,7 @@
|
|||
*/
|
||||
|
||||
#include <LUFA/Common/Common.h>
|
||||
#include <LUFA/Drivers/Board/Board.h>
|
||||
#include <LUFA/Drivers/Board/Buttons.h>
|
||||
#include <LUFA/Drivers/Board/Dataflash.h>
|
||||
#include <LUFA/Drivers/Board/LEDs.h>
|
||||
|
@ -37,18 +38,18 @@
|
|||
int main(void)
|
||||
{
|
||||
uint_reg_t Dummy;
|
||||
|
||||
|
||||
/* =============================
|
||||
* Buttons Compile Check
|
||||
* ============================= */
|
||||
* ============================= */
|
||||
Buttons_Init();
|
||||
// cppcheck-suppress redundantAssignment
|
||||
Dummy = Buttons_GetStatus();
|
||||
Buttons_Disable();
|
||||
|
||||
|
||||
/* =============================
|
||||
* Dataflash Compile Check
|
||||
* ============================= */
|
||||
* ============================= */
|
||||
Dataflash_Init();
|
||||
Dataflash_TransferByte(0);
|
||||
Dataflash_SendByte(0);
|
||||
|
@ -65,7 +66,7 @@ int main(void)
|
|||
|
||||
/* =============================
|
||||
* LEDs Compile Check
|
||||
* ============================= */
|
||||
* ============================= */
|
||||
LEDs_Init();
|
||||
LEDs_TurnOnLEDs(LEDS_ALL_LEDS);
|
||||
LEDs_TurnOffLEDs(LEDS_ALL_LEDS);
|
||||
|
@ -75,15 +76,15 @@ int main(void)
|
|||
// cppcheck-suppress redundantAssignment
|
||||
Dummy = LEDs_GetLEDs();
|
||||
LEDs_Disable();
|
||||
|
||||
|
||||
/* =============================
|
||||
* Joystick Compile Check
|
||||
* ============================= */
|
||||
* ============================= */
|
||||
Joystick_Init();
|
||||
// cppcheck-suppress redundantAssignment
|
||||
Dummy = Joystick_GetStatus();
|
||||
Joystick_Disable();
|
||||
|
||||
|
||||
(void)Dummy;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue