#include "nlao_cpu.h"
#include "nlao_usart.h"
#include "compiler.h"
#include "board.h"
#include "print_funcs.h"
#include "intc.h"
#include "gpio.h"
#include "power_clocks_lib.h"
#include "conf_usb.h"
#include "usb_task.h"
#include "device_mouse_hid_task.h"
#include "host_mouse_hid_task.h"
#include "hid_example.h"
Functions | |
int | _init_startup (void) |
Low-level initialization routine called during startup, before the main function. More... | |
int | main (void) |
Main function. Execution starts here. More... | |
void | touch_button_isr (void) |
Touch sensor ISR. This ISR is used to control the remote wakeup function. More... | |
Variables | |
System Clock Frequencies | |
static pcl_freq_param_t | pcl_freq_param |
int _init_startup | ( | void | ) |
Low-level initialization routine called during startup, before the main function.
This version comes in replacement to the default one provided by the Newlib add-ons library. Newlib add-ons' _init_startup only calls init_exceptions, but Newlib add-ons' exception and interrupt vectors are defined in the same section and Newlib add-ons' interrupt vectors are not compatible with the interrupt management of the INTC module. More low-level initializations are besides added here.
References _evba, DBG_USART, Enable_global_exception, INTC_init_interrupts(), pcl_freq_param, set_cpu_hz(), Set_system_register, and set_usart_base().
int main | ( | void | ) |
Main function. Execution starts here.
42 | Fatal error. |
References device_mouse_hid_task(), device_mouse_hid_task_init(), Disable_global_interrupt, Enable_global_interrupt, host_mouse_hid_task(), host_mouse_hid_task_init(), init_dbg_rs232(), INTC_register_interrupt(), PASS, pcl_configure_clocks(), pcl_configure_usb_clock(), pcl_freq_param, touch_button_isr(), usb_task(), and usb_task_init().
void touch_button_isr | ( | void | ) |
Touch sensor ISR. This ISR is used to control the remote wakeup function.
References gpio_clear_pin_interrupt_flag(), gpio_disable_pin_interrupt(), QT1081_TOUCH_SENSOR_ENTER, Usb_initiate_remote_wake_up, and Usb_unfreeze_clock.
Referenced by main().
|
static |
Referenced by _init_startup(), and main().