#include "compiler.h"
Macros | |
#define | CONTROLLER_LONG_PRESS_TIME_MS 3000 |
Functions | |
void | controller_init (int cpu_hz, int hsb_hz, int pba_hz, int pbb_hz) |
bool | controller_key_back (void) |
bool | controller_key_fct1 (void) |
bool | controller_key_fct1_pressed (void) |
bool | controller_key_fct2 (void) |
bool | controller_key_fct2_pressed (void) |
bool | controller_key_fct3 (void) |
bool | controller_key_fct3_pressed (void) |
bool | controller_key_pressed (void) |
bool | controller_key_released (void) |
bool | controller_key_reset (void) |
void | controller_reset (void) |
void | controller_task (void) |
bool | controller_wheel_left (int wheel_inc) |
bool | controller_wheel_pressed (void) |
bool | controller_wheel_right (int wheel_inc) |
#define CONTROLLER_LONG_PRESS_TIME_MS 3000 |
void controller_init | ( | int | cpu_hz, |
int | hsb_hz, | ||
int | pba_hz, | ||
int | pbb_hz | ||
) |
References cpu_hz, cpu_ms_2_cy(), cpu_set_timeout(), Disable_global_interrupt, Enable_global_interrupt, gpio_enable_pin_interrupt(), GPIO_PIN_CHANGE, INTC_register_interrupt(), JOYSTICK_KEY_DEBOUNCE_MS, QT1081_TOUCH_SENSOR_DOWN, QT1081_TOUCH_SENSOR_ENTER, QT1081_TOUCH_SENSOR_LEFT, QT1081_TOUCH_SENSOR_RIGHT, QT1081_TOUCH_SENSOR_UP, static_fcpu_hz, and touch_button_isr().
Referenced by main().
bool controller_key_back | ( | void | ) |
References cpu_is_timeout(), cpu_ms_2_cy(), cpu_set_timeout(), gpio_clr_gpio_pin(), gpio_set_gpio_pin(), IS_JOYSTICK_KEY_PRESSED, LED0_GPIO, no_store, and static_fcpu_hz.
Referenced by state_machine_task().
bool controller_key_fct1 | ( | void | ) |
References is_joystick_released_up().
Referenced by state_machine_task().
bool controller_key_fct1_pressed | ( | void | ) |
bool controller_key_fct2 | ( | void | ) |
References is_joystick_released_pressed().
Referenced by state_machine_task().
bool controller_key_fct2_pressed | ( | void | ) |
bool controller_key_fct3 | ( | void | ) |
References is_joystick_released_down().
Referenced by state_machine_task().
bool controller_key_fct3_pressed | ( | void | ) |
References IS_JOYSTICK_KEY_DOWN.
Referenced by state_machine_task().
bool controller_key_pressed | ( | void | ) |
References IS_JOYSTICK_KEY_DOWN, IS_JOYSTICK_KEY_LEFT, IS_JOYSTICK_KEY_PRESSED, IS_JOYSTICK_KEY_RIGHT, and IS_JOYSTICK_KEY_UP.
Referenced by controller_wheel_pressed().
bool controller_key_released | ( | void | ) |
bool controller_key_reset | ( | void | ) |
Referenced by state_machine_task().
void controller_reset | ( | void | ) |
Referenced by state_machine_filter(), state_machine_signal(), state_machine_source(), and state_machine_task().
void controller_task | ( | void | ) |
Referenced by main().
bool controller_wheel_left | ( | int | wheel_inc | ) |
References is_joystick_left().
Referenced by state_machine_filter(), state_machine_idle(), state_machine_signal(), and state_machine_source().
bool controller_wheel_pressed | ( | void | ) |
References controller_key_pressed().
bool controller_wheel_right | ( | int | wheel_inc | ) |
References is_joystick_right().
Referenced by state_machine_filter(), state_machine_idle(), state_machine_signal(), and state_machine_source().