UC3-L0 Xplained demonstration application.
Copyright (c) 2011-2018 Microchip Technology Inc. and its subsidiaries.
Macros | |
#define | EXAMPLE_PWMA_FREQUENCY 19607 |
#define | EXAMPLE_PWMA_GCLK_FREQUENCY 5000000 |
Typedefs | |
typedef enum led_pwm_channel | led_pwm_channel_t |
Enumerations | |
enum | led_pwm_channel { PWM_CHANNEL_RED = (1 << LED_RED_PWMA), PWM_CHANNEL_GREEN = (1 << LED_GREEN_PWMA), PWM_CHANNEL_BLUE = (1 << LED_BLUE_PWMA) } |
Functions | |
void | init_touch (void) |
Initializes the touch library ready for acquisition of touch data. More... | |
void | touch_handler (void) |
#define EXAMPLE_PWMA_FREQUENCY 19607 |
Referenced by init_pwm().
#define EXAMPLE_PWMA_GCLK_FREQUENCY 5000000 |
typedef enum led_pwm_channel led_pwm_channel_t |
enum led_pwm_channel |
void init_touch | ( | void | ) |
Initializes the touch library ready for acquisition of touch data.
Sets up all required hardware and initializes the touch library.
References Disable_global_interrupt, Enable_global_interrupt, handle_touch_error(), HYST_12_5, HYST_6_25, init_timer(), INTC_register_interrupt(), NO_AKS_GROUP, QDebug_Init(), QM_GCLK_CAT_DIV, RES_1_BIT, RES_8_BIT, scif_gc_enable(), scif_gc_setup(), SCIF_GCCTRL_DFLL0, SENSOR_TYPE_KEY, SENSOR_TYPE_SLIDER, sysclk_enable_hsb_module(), sysclk_enable_peripheral_clock(), SYSCLK_EVENT, touch_at_sensor_enable(), touch_at_sensor_init(), touch_at_status_change_callback(), touch_qm_sensor_config(), touch_qm_sensors_calibrate(), touch_qm_sensors_init, and TOUCH_SUCCESS.
Referenced by main().
void touch_handler | ( | void | ) |
References tag_touch_measure_data_t::acq_status, current_time_ms, handle_touch_error(), NORMAL_ACQ_MODE, p_qm_measurement_done, tag_touch_measure_data_t::p_rotor_slider_values, tag_touch_measure_data_t::p_sensor_states, pwma_set_channels_value(), QDebug_ProcessCommands(), QDebug_SendData(), rgb_led, time_to_measure_touch, touch_event_dispatcher(), touch_qm_measurement_complete_callback(), touch_qm_sensors_start_acquisition(), and TOUCH_SUCCESS.
Referenced by main().