/* Initialize the app in low power: now PB0 push button has been pressed once, the application switches in low power mode: Stop LCD controller, stop LCD backlight, stop QTouch acquisition, switch SAM4L in power scaling PS1 mode. SAM4L is in RUN mode.  */
void app_init_lowpower(void)
/* Initialize the app in low power: now PB0 push button has been pressed once, the application switches in low power mode: Stop LCD controller, stop LCD backlight, stop QTouch acquisition, switch SAM4L in power scaling PS1 mode. SAM4L is in RUN mode.  */
void app_init_lowpower(void)
{
	lcdca_disable();
	touch_sensors_deinit();
	board_init();
	ioport_set_pin_level(LCD_BL_GPIO, IOPORT_PIN_LEVEL_LOW);
	sysclk_disable_peripheral_clock(CATB);
	sysclk_disable_peripheral_clock(PDCA);
	sysclk_disable_peripheral_clock(LCDCA);
	ui_set_mcu_status(POWER_SCALING_PS1, SLEEP_MODE_RUN,
		12000000, CPU_SRC_RC4M);
	app_switch_power_scaling(ui_get_power_scaling_mcu_status());
	ui_bm_send_mcu_status();
}