| LUFA Library 140302 |

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
EVK527
Joystick Driver - LUFA/Drivers/Board/Joystick.h

Board specific joystick driver header for the Atmel EVK527. More...

## Macros
#define | JOY_DOWN ((1 << 6) >> JOY_PORTC_MASK_SHIFT)
#define | JOY_LEFT (1 << 4)
#define | JOY_PRESS (1 << 6)
#define | JOY_RIGHT (1 << 7)
#define | JOY_UP (1 << 5)

## Detailed Description

Board specific joystick driver header for the Atmel EVK527.

Left Port Pin | Up Port Pin | Right Port Pin | Down Port Pin | Press Port Pin
--- | --- | --- | --- | ---
PORTF.4 | PORTF.5 | PORTF.7 | PORTC.6 | PORTF.6

## Macro Definition Documentation

#define JOY_DOWN ((1 << 6) >> JOY_PORTC_MASK_SHIFT)

Mask for the joystick being pushed in the downward direction.

#define JOY_LEFT (1 << 4)

Mask for the joystick being pushed in the left direction.

#define JOY_PRESS (1 << 6)

Mask for the joystick being pushed inward.

#define JOY_RIGHT (1 << 7)

Mask for the joystick being pushed in the right direction.

#define JOY_UP (1 << 5)

Mask for the joystick being pushed in the upward direction.