git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@178 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
e8aefc848a
commit
3e62617990
|
@ -69,7 +69,7 @@ void chSysUnlock(void) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void chSysSwitchI(struct Thread *otp, struct Thread *ntp) {
|
void chSysSwitchI(Thread *otp, Thread *ntp) {
|
||||||
|
|
||||||
#ifdef THUMB
|
#ifdef THUMB
|
||||||
asm(".p2align 2,, \n\t" \
|
asm(".p2align 2,, \n\t" \
|
||||||
|
|
|
@ -122,7 +122,7 @@ extern void chSysUnlock(void);
|
||||||
void _IdleThread(void *p) __attribute__((noreturn));
|
void _IdleThread(void *p) __attribute__((noreturn));
|
||||||
|
|
||||||
void chSysHalt(void);
|
void chSysHalt(void);
|
||||||
void chSysSwitchI(struct Thread *otp, struct Thread *ntp);
|
void chSysSwitchI(Thread *otp, Thread *ntp);
|
||||||
void chSysPuts(char *msg);
|
void chSysPuts(char *msg);
|
||||||
void threadstart(void);
|
void threadstart(void);
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ AVR-AT90CANx-GCC - Port on AVR AT90CAN128, not complete yet.
|
||||||
*****************************************************************************
|
*****************************************************************************
|
||||||
|
|
||||||
*** 0.5.2 ***
|
*** 0.5.2 ***
|
||||||
|
- Fixed a small problem in the main header file ch.h.
|
||||||
- Small reordering in the fields of the Thread structure in order to optimize
|
- Small reordering in the fields of the Thread structure in order to optimize
|
||||||
the space when messages are not used.
|
the space when messages are not used.
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,6 @@
|
||||||
|
|
||||||
#define _CHIBIOS_RT_
|
#define _CHIBIOS_RT_
|
||||||
|
|
||||||
struct Thread;
|
|
||||||
|
|
||||||
#ifndef __DOXIGEN__
|
|
||||||
#ifndef _CHCONF_H_
|
#ifndef _CHCONF_H_
|
||||||
#include <chconf.h>
|
#include <chconf.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -38,19 +35,18 @@ struct Thread;
|
||||||
#include <chtypes.h>
|
#include <chtypes.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef _LISTS_H_
|
||||||
|
#include "lists.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _CHCORE_H_
|
#ifndef _CHCORE_H_
|
||||||
#include <chcore.h>
|
#include <chcore.h>
|
||||||
#endif
|
#endif
|
||||||
#endif /* __DOXIGEN__ */
|
|
||||||
|
|
||||||
#ifndef _LISTS_H_
|
#ifndef _DELTA_H_
|
||||||
#include "delta.h"
|
#include "delta.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef _LISTS_H_
|
|
||||||
#include "lists.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _SCHEDULER_H_
|
#ifndef _SCHEDULER_H_
|
||||||
#include "scheduler.h"
|
#include "scheduler.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -32,7 +32,7 @@ typedef struct Thread Thread;
|
||||||
#define notempty(p) ((p)->p_next != (Thread *)(p))
|
#define notempty(p) ((p)->p_next != (Thread *)(p))
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic threads FIFO queue header and element.
|
* Generic threads queue header and element.
|
||||||
*/
|
*/
|
||||||
typedef struct {
|
typedef struct {
|
||||||
/** Next \p Thread in the queue, in FIFO order.*/
|
/** Next \p Thread in the queue, in FIFO order.*/
|
||||||
|
|
|
@ -57,7 +57,7 @@ void chSysHalt(void) {
|
||||||
/**
|
/**
|
||||||
* Context switch.
|
* Context switch.
|
||||||
*/
|
*/
|
||||||
void chSysSwitchI(Context *oldp, Context *newp) {}
|
void chSysSwitchI(Thread *otp, Thread *ntp) {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints a message on the system console (if any).
|
* Prints a message on the system console (if any).
|
||||||
|
|
Loading…
Reference in New Issue