aboutsummaryrefslogtreecommitdiffstats
path: root/src/chinit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/chinit.c')
-rw-r--r--src/chinit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/chinit.c b/src/chinit.c
index d93ac1581..a675d6910 100644
--- a/src/chinit.c
+++ b/src/chinit.c
@@ -33,7 +33,7 @@
*/
void chSysInit(void) {
static Thread mainthread;
- static WorkingArea(waIdleThread, IDLE_THREAD_STACK_SIZE);
+ static WORKING_AREA(idle_wa, IDLE_THREAD_STACK_SIZE);
chSchInit();
chDbgInit();
@@ -54,8 +54,7 @@ void chSysInit(void) {
* serve interrupts in its context while keeping the lowest energy saving
* mode compatible with the system status.
*/
- chThdCreateStatic(waIdleThread, sizeof(waIdleThread),
- IDLEPRIO, (tfunc_t)_IdleThread, NULL);
+ chThdCreateStatic(idle_wa, sizeof(idle_wa), IDLEPRIO, (tfunc_t)_idle, NULL);
}
/**