Board specific joystick driver header for the Atmel STK525. More...
Macros | |
| #define | JOY_DOWN ((1 << 5) >> JOY_PORTE_MASK_SHIFT) |
| #define | JOY_LEFT (1 << 6) |
| #define | JOY_PRESS (1 << 5) |
| #define | JOY_RIGHT ((1 << 4) >> JOY_PORTE_MASK_SHIFT) |
| #define | JOY_UP (1 << 7) |
Board specific joystick driver header for the Atmel STK525.
| Left Port Pin | Up Port Pin | Right Port Pin | Down Port Pin | Press Port Pin |
|---|---|---|---|---|
| PORTB.6 | PORTB.7 | PORTE.4 | PORTE.5 | PORTB.5 |
| #define JOY_DOWN ((1 << 5) >> JOY_PORTE_MASK_SHIFT) |
Mask for the joystick being pushed in the downward direction.
| #define JOY_LEFT (1 << 6) |
Mask for the joystick being pushed in the left direction.
| #define JOY_PRESS (1 << 5) |
Mask for the joystick being pushed inward.
| #define JOY_RIGHT ((1 << 4) >> JOY_PORTE_MASK_SHIFT) |
Mask for the joystick being pushed in the right direction.
| #define JOY_UP (1 << 7) |
Mask for the joystick being pushed in the upward direction.