/* Function for starting application. 
This function will configure the WDT module and enable it. The LED is kept toggling till WDT reset occurs.  */
static void start_application(void)
/* Function for starting application. 
This function will configure the WDT module and enable it. The LED is kept toggling till WDT reset occurs.  */
static void start_application(void)
{
	struct wdt_conf wdt_config;
	port_pin_set_output_level(BOOT_LED, true);
	wdt_get_config_defaults(&wdt_config);
	wdt_config.clock_source = GCLK_GENERATOR_4;
	wdt_config.timeout_period = WDT_PERIOD_256CLK;
	wdt_set_config(&wdt_config);
	while (1) {
		port_pin_toggle_output_level(BOOT_LED);
	}
}