Functions | |
void | controller_init (uint32_t fcpu_hz, uint32_t fhsb_hz, uint32_t fpbb_hz, uint32_t fpba_hz) |
Initialization function of the controller interface. More... | |
bool | is_joystick_down (void) |
check if down is pressed. More... | |
bool | is_joystick_left (void) |
check if left is pressed. More... | |
bool | is_joystick_pressed (void) |
check if pressed is pressed. More... | |
bool | is_joystick_right (void) |
check if right is pressed. More... | |
bool | is_joystick_up (void) |
check if up is pressed. More... | |
void controller_init | ( | uint32_t | fcpu_hz, |
uint32_t | fhsb_hz, | ||
uint32_t | fpbb_hz, | ||
uint32_t | fpba_hz | ||
) |
Initialization function of the controller interface.
fcpu_hz | CPU frequency. |
fhsb_hz | HSB frequency. |
fpbb_hz | PBB frequency. |
fpba_hz | PBA frequency. |
Referenced by main().
bool is_joystick_down | ( | void | ) |
bool is_joystick_left | ( | void | ) |
bool is_joystick_pressed | ( | void | ) |
check if pressed is pressed.
References is_touch_sensor_4().
Referenced by device_audio_task(), and is_usb_hid_event().
bool is_joystick_right | ( | void | ) |
bool is_joystick_up | ( | void | ) |