/* Before you start, select your target, on the right of the "Load" button */
int main(void)
/* Before you start, select your target, on the right of the "Load" button */
int main(void)
{
		if (CPU_LOAD.Updated) {
			printf("W: %u; S: %u; Load: %5.2f\n", CPU_LOAD.WCNT, CPU_LOAD.SCNT, CPU_LOAD.Load);
		}
		TM_DISCO_LedToggle(LED_ALL);
		if (TM_DISCO_ButtonPressed()) {
			i = 0;
			while (i++ < 0x1FFF);
		}
		TM_CPULOAD_GoToSleepMode(&CPU_LOAD, TM_LOWPOWERMODE_SleepUntilInterrupt);
	}
}