aboutsummaryrefslogtreecommitdiffstats
path: root/demos/XMC/RT-XMC1100-XMC_2GO/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'demos/XMC/RT-XMC1100-XMC_2GO/main.c')
-rw-r--r--demos/XMC/RT-XMC1100-XMC_2GO/main.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/demos/XMC/RT-XMC1100-XMC_2GO/main.c b/demos/XMC/RT-XMC1100-XMC_2GO/main.c
index 71d44bca6..b16797d18 100644
--- a/demos/XMC/RT-XMC1100-XMC_2GO/main.c
+++ b/demos/XMC/RT-XMC1100-XMC_2GO/main.c
@@ -20,10 +20,6 @@
#define SYSTEM_CLOCK 8000000U
#endif
-void __early_init(void) {
-
- ;
-}
/*
* @brief System Timer handler.
*/
@@ -68,7 +64,7 @@ int main(void) {
*/
SysTick->LOAD = SYSTEM_CLOCK / CH_CFG_ST_FREQUENCY - (systime_t)1;
SysTick->VAL = (uint32_t)0;
- SysTick->CTRL = SysTick_CTRL_CLKSOURCE_Msk | SysTick_CTRL_ENABLE_Msk |
+ SysTick->CTRL = SysTick_CTRL_ENABLE_Msk | SysTick_CTRL_CLKSOURCE_Msk |
SysTick_CTRL_TICKINT_Msk;
/*
@@ -81,14 +77,14 @@ int main(void) {
/*
* Creates the example thread.
*/
- (void) chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
+ chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
/*
* Normal main() thread activity, in this demo it does nothing except
* increasing the minutes counter.
*/
while (true) {
- chThdSleepSeconds(60);
+ chThdSleepSeconds(2);
minutes_counter++;
}
}