diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-01-27 15:28:17 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-01-27 15:28:17 +0000 |
commit | a05dd562395a549db2113cd1bc570ab9b68fee6e (patch) | |
tree | 37d43b539beb1bdf01e313e3709dac902e3f67fd /BuildTests/BoardDriverTest/Test.c | |
parent | bc8e686e5179bea02941bac7f8fe5989de81b4d8 (diff) | |
download | lufa-a05dd562395a549db2113cd1bc570ab9b68fee6e.tar.gz lufa-a05dd562395a549db2113cd1bc570ab9b68fee6e.tar.bz2 lufa-a05dd562395a549db2113cd1bc570ab9b68fee6e.zip |
Add code template for the new board hardware information driver.
Diffstat (limited to 'BuildTests/BoardDriverTest/Test.c')
-rw-r--r-- | BuildTests/BoardDriverTest/Test.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/BuildTests/BoardDriverTest/Test.c b/BuildTests/BoardDriverTest/Test.c index 5c878d2d1..c9f836eaa 100644 --- a/BuildTests/BoardDriverTest/Test.c +++ b/BuildTests/BoardDriverTest/Test.c @@ -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; } |