X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/7f9f97c792dee6875fbca9806422bdd7d6c5a657..a7aaa45ec4c3f415bf6073a5cc016635d5ecf77d:/LUFA/Drivers/Board/STK525/Joystick.h diff --git a/LUFA/Drivers/Board/STK525/Joystick.h b/LUFA/Drivers/Board/STK525/Joystick.h index 11abad523..aab650d98 100644 --- a/LUFA/Drivers/Board/STK525/Joystick.h +++ b/LUFA/Drivers/Board/STK525/Joystick.h @@ -39,6 +39,11 @@ /** \ingroup Group_Joystick * @defgroup Group_Joystick_STK525 STK525 * + * Board specific joystick driver header for the STK525. + * + * \note This file should not be included directly. It is automatically included as needed by the joystick driver + * dispatch header located in LUFA/Drivers/Board/Joystick.h. + * * @{ */ @@ -56,7 +61,7 @@ #endif /* Preprocessor Checks: */ - #if !defined(INCLUDE_FROM_JOYSTICK_H) + #if !defined(__INCLUDE_FROM_JOYSTICK_H) #error Do not include this file directly. Include LUFA/Drivers/Board/Joystick.h instead. #endif @@ -95,8 +100,7 @@ PORTE |= JOY_EMASK; } - static inline uint8_t Joystick_GetStatus(void) ATTR_WARN_UNUSED_RESULT; - static inline uint8_t Joystick_GetStatus(void) + static inline uintN_t Joystick_GetStatus(void) { return (((uint8_t)~PINB & JOY_BMASK) | (((uint8_t)~PINE & JOY_EMASK) >> 1)); }