diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-17 20:34:13 +0200 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2013-05-17 20:34:13 +0200 |
commit | 85a0e75c602a4f86b72664ee4cfe85f026f3a64d (patch) | |
tree | 47daa0c44f8f7e502b05c46322b32f55ba777c26 /BuildTests/BoardDriverTest/Board/Joystick.h | |
parent | c8f226980499d8e5b0b3d361dc986e2759dcaacb (diff) | |
download | lufa-85a0e75c602a4f86b72664ee4cfe85f026f3a64d.tar.gz lufa-85a0e75c602a4f86b72664ee4cfe85f026f3a64d.tar.bz2 lufa-85a0e75c602a4f86b72664ee4cfe85f026f3a64d.zip |
Improve the BoardDriver build test, check for mismatches board hardware support macros or missing driver macros.
Diffstat (limited to 'BuildTests/BoardDriverTest/Board/Joystick.h')
-rw-r--r-- | BuildTests/BoardDriverTest/Board/Joystick.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/BuildTests/BoardDriverTest/Board/Joystick.h b/BuildTests/BoardDriverTest/Board/Joystick.h index 4d7135276..74a5d706c 100644 --- a/BuildTests/BoardDriverTest/Board/Joystick.h +++ b/BuildTests/BoardDriverTest/Board/Joystick.h @@ -57,33 +57,35 @@ #error Do not include this file directly. Include LUFA/Drivers/Board/Joystick.h instead. #endif + #define BOARD_DUMMY_JOYSTICK_IMPLEMENTATION + /* Public Interface - May be used in end-application: */ /* Macros: */ /** Mask for the joystick being pushed in the left direction. */ - #define JOY_LEFT // TODO: Add mask to indicate joystick left position here + #define JOY_LEFT 0 /** Mask for the joystick being pushed in the right direction. */ - #define JOY_RIGHT // TODO: Add mask to indicate joystick right position here + #define JOY_RIGHT 0 /** Mask for the joystick being pushed in the upward direction. */ - #define JOY_UP // TODO: Add mask to indicate joystick up position here + #define JOY_UP 0 /** Mask for the joystick being pushed in the downward direction. */ - #define JOY_DOWN // TODO: Add mask to indicate joystick down position here + #define JOY_DOWN 0 /** Mask for the joystick being pushed inward. */ - #define JOY_PRESS // TODO: Add mask to indicate joystick pressed position here + #define JOY_PRESS 0 /* Inline Functions: */ #if !defined(__DOXYGEN__) static inline void Joystick_Init(void) { - + } static inline void Joystick_Disable(void) { - + } static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT; |