/* Application initialization: at startup the application run in full demo mode (all features on, includes QTouch and segment LCD). Initialize the board IO configuration, clocks, QTouch library, xternal interrupts, NVIC and UI. SAM4L is running at 12 MHz from internal RCFAST (configured at 12MHz). 
Support and FAQ: visit  */
void app_init(void)
/* Application initialization: at startup the application run in full demo mode (all features on, includes QTouch and segment LCD). Initialize the board IO configuration, clocks, QTouch library, xternal interrupts, NVIC and UI. SAM4L is running at 12 MHz from internal RCFAST (configured at 12MHz). 
Support and FAQ: visit  */
void app_init(void)
{
	board_init();
	sysclk_init();
	event_button_init();
	event_qtouch_init();
	ui_set_mcu_status(POWER_SCALING_PS1, SLEEP_MODE_RUN,
		12000000, CPU_SRC_RC4M);
	ui_bm_init();
	ioport_set_pin_level(LCD_BL_GPIO, IOPORT_PIN_LEVEL_HIGH);
	ui_lcd_init();
}