#include "../../Common/BoardTypes.h"
Functions | |
static void | Joystick_Init (void) |
static uint8_t | Joystick_GetStatus (void) ATTR_WARN_UNUSED_RESULT |
User code should include this file, which will in turn include the correct joystick driver header file for the currently selected board.
If the BOARD value is set to BOARD_USER, this will include the /Board/Joystick.h file in the user project directory.
static uint8_t Joystick_GetStatus | ( | void | ) | [inline, static] |
Returns the current status of the joystick, as a mask indicating the direction the joystick is currently facing in (multiple bits can be set).
static void Joystick_Init | ( | void | ) | [inline, static] |
Initializes the joystick driver so that the joystick position can be read. This sets the appropriate I/O pins to inputs with their pull-ups enabled.