From: batt Date: Wed, 27 Aug 2008 16:31:12 +0000 (+0000) Subject: Fix warning for no prototype. X-Git-Tag: 2.0.0~198 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d3860ea45a63b0443e4e75a16b402ada83078d12;p=bertos.git Fix warning for no prototype. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1736 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/idle.c b/bertos/kern/idle.c index ecbe5915..229058bd 100644 --- a/bertos/kern/idle.c +++ b/bertos/kern/idle.c @@ -35,6 +35,7 @@ * \author Bernie Innocenti */ +#include "idle.h" #include "proc.h" #include diff --git a/bertos/kern/idle.h b/bertos/kern/idle.h new file mode 100644 index 00000000..bad98feb --- /dev/null +++ b/bertos/kern/idle.h @@ -0,0 +1,41 @@ +/** + * \file + * + * + * \brief Idle loop for preemptive scheduling + * + * \version $Id$ + * \author Bernie Innocenti + */ +#ifndef KERN_IDLE_H +#define KERN_IDLE_H + +void idle_init(void); +#endif /* KERN_IDLE_H */ diff --git a/bertos/kern/preempt.c b/bertos/kern/preempt.c index 85aab8ea..c3d212d4 100644 --- a/bertos/kern/preempt.c +++ b/bertos/kern/preempt.c @@ -50,6 +50,7 @@ #include "proc_p.h" #include "proc.h" +#include "idle.h" #include #include @@ -69,10 +70,6 @@ int preempt_forbid_cnt; static Timer preempt_timer; -// fwd decl from idle.c -void idle_init(void); - - void proc_schedule(void) { IRQ_DISABLE;