Landtiger LPC1768 C BigLib 1
A self made, custom C library for the LandTiger board.
 
Loading...
Searching...
No Matches
joystick_types.h
Go to the documentation of this file.
1#ifndef __JOYSTICK_TYPES_H
2#define __JOYSTICK_TYPES_H
3
4#include "types.h"
5
14
16typedef void (*JOYSTICK_Function)(void);
17
18// Each function is mapped to the correspoding GPIO pin, so
19// check can be simplified.
29
30#define JOY_ACTION_ALL (u8)(-1)
31
32#endif
void(* JOYSTICK_Function)(void)
Joystick function handler function pointer.
JOYSTICK_Error
@ JOY_ERR_OK
No error.
@ JOY_ERR_RIT_UNINIT
During initialization, POLL_WITH_RIT was requested but the RIT was not enabled.
JOYSTICK_Action
@ JOY_ACTION_SEL
@ JOY_ACTION_COUNT
@ JOY_ACTION_RIGHT
@ JOY_ACTION_LEFT
@ JOY_ACTION_UP
@ JOY_ACTION_DOWN