rename cpuXXX_t to cpu_XXX_t
[bertos.git] / bertos / kern / idle.c
index 2ea379c8c8c7bb0358b345339c23df4ae26ec210..3aa4bb0400651585dcbd308ad0ff1c6a80b7285d 100644 (file)
  * \author Bernie Innocenti <bernie@codewiz.org>
  */
 
+#include "idle.h"
 #include "proc.h"
 
 #include <cfg/module.h>
 
 
-static cpustack_t idle_stack[CONFIG_PROC_DEFSTACKSIZE / sizeof(cpustack_t)];
+static cpu_stack_t idle_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)];
 
 /**
  * The idle process
@@ -66,6 +67,6 @@ static NORETURN void idle(void)
 
 void idle_init(void)
 {
-       Process *idle_proc = proc_new(idle, NULL, sizeof(idle_stack), idle_stack);
+       struct Process *idle_proc = proc_new(idle, NULL, sizeof(idle_stack), idle_stack);
        proc_setPri(idle_proc, (int)~0);
 }