45 LPC_PINCON->PINSEL3 &= ~(0x3FF << 18);
48 LPC_GPIO1->FIODIR &= ~(0x1F << 25);
_PRIVATE FunctionWrapper functions[JOY_ACTION_COUNT]
Array of function pointers containing the hanlder for each joystick function.
void JOYSTICK_Deinit(void)
Deinitializes the joystick, by removing all functions associated with the actions,...
void JOYSTICK_UnsetFunction(JOYSTICK_Action action)
Unsets a functionality for the given action, if previously set.
JOYSTICK_Error JOYSTICK_Init(void)
Initializes the joystick peripheral with the given options.
void JOYSTICK_SetFunction(JOYSTICK_Action action, JOYSTICK_Function function)
Sets a functionality for the given action.
_PRIVATE void handle_polling(void)
void JOYSTICK_DisableAction(JOYSTICK_Action action)
Disables the specific action, and disables the binding with its functionality, without un-binding it ...
void JOYSTICK_EnableAction(JOYSTICK_Action action)
Enables the specified action, thus enabling the binding with the associated functionality,...
void(* JOYSTICK_Function)(void)
Joystick function handler function pointer.
@ JOY_ERR_RIT_UNINIT
During initialization, POLL_WITH_RIT was requested but the RIT was not enabled.
RIT_Error RIT_EnableJob(RIT_Job job)
Include this job in the RIT handler queue.
RIT_Error RIT_RemoveJob(RIT_Job job)
Removes a job from the RIT interrupt handler job queue.
RIT_Error RIT_AddJob(RIT_Job job, u8 multiplier_factor)
bool RIT_IsEnabled(void)
Returns whether the RIT is counting or not.
#define RIT_NO_DIVIDER
Tells the RIT that the specified job needs to be executed at exactly the interval of interrupts chose...
JOYSTICK_Function function