From 3e62617990c8fcea0649eacd6f769f4e544b920d Mon Sep 17 00:00:00 2001 From: gdisirio Date: Thu, 17 Jan 2008 09:34:46 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@178 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/ch.h | 14 +++++--------- src/include/lists.h | 2 +- src/templates/chcore.c | 2 +- 3 files changed, 7 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/include/ch.h b/src/include/ch.h index dcb486626..52d3dd772 100644 --- a/src/include/ch.h +++ b/src/include/ch.h @@ -27,9 +27,6 @@ #define _CHIBIOS_RT_ -struct Thread; - -#ifndef __DOXIGEN__ #ifndef _CHCONF_H_ #include #endif @@ -38,19 +35,18 @@ struct Thread; #include #endif +#ifndef _LISTS_H_ +#include "lists.h" +#endif + #ifndef _CHCORE_H_ #include #endif -#endif /* __DOXIGEN__ */ -#ifndef _LISTS_H_ +#ifndef _DELTA_H_ #include "delta.h" #endif -#ifndef _LISTS_H_ -#include "lists.h" -#endif - #ifndef _SCHEDULER_H_ #include "scheduler.h" #endif diff --git a/src/include/lists.h b/src/include/lists.h index 2a8f20e82..1038cb340 100644 --- a/src/include/lists.h +++ b/src/include/lists.h @@ -32,7 +32,7 @@ typedef struct Thread Thread; #define notempty(p) ((p)->p_next != (Thread *)(p)) /** - * Generic threads FIFO queue header and element. + * Generic threads queue header and element. */ typedef struct { /** Next \p Thread in the queue, in FIFO order.*/ diff --git a/src/templates/chcore.c b/src/templates/chcore.c index 195113abf..2aaa0b06a 100644 --- a/src/templates/chcore.c +++ b/src/templates/chcore.c @@ -57,7 +57,7 @@ void chSysHalt(void) { /** * Context switch. */ -void chSysSwitchI(Context *oldp, Context *newp) {} +void chSysSwitchI(Thread *otp, Thread *ntp) {} /** * Prints a message on the system console (if any). -- cgit v1.2.3