git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@421 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
d1ffba4de3
commit
071e9457b0
|
@ -46,23 +46,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
#define CH_USE_WAITEXIT
|
||||
|
|
|
@ -46,23 +46,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
#define CH_USE_WAITEXIT
|
||||
|
|
|
@ -46,23 +46,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
#define CH_USE_WAITEXIT
|
||||
|
|
|
@ -46,23 +46,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
//#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
//#define CH_USE_WAITEXIT
|
||||
|
|
|
@ -46,23 +46,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
#define CH_USE_WAITEXIT
|
||||
|
|
|
@ -46,23 +46,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
#define CH_USE_WAITEXIT
|
||||
|
|
|
@ -46,23 +46,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
#define CH_USE_WAITEXIT
|
||||
|
|
|
@ -46,23 +46,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
#define CH_USE_WAITEXIT
|
||||
|
|
|
@ -47,23 +47,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
#define CH_USE_WAITEXIT
|
||||
|
|
|
@ -51,23 +51,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
#define CH_USE_WAITEXIT
|
||||
|
|
|
@ -92,8 +92,9 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
|
|||
- FIX: Corrected the wrong definition of the chThdResumeI() macro.
|
||||
- CHANGE: Now the chThdResume() asserts that the thread is in PRSUSPEND state
|
||||
rather than test it.
|
||||
- CHANGE: Removed the CH_USE_SUSPEND and CH_USE_RESUME configuration options
|
||||
in order to make the chconf.h file simpler.
|
||||
- CHANGE: Removed the CH_USE_TERMINATE, CH_USE_SLEEP, CH_USE_SUSPEND and
|
||||
CH_USE_RESUME configuration options in order to make the chconf.h file
|
||||
simpler. The related functions are very small and almost always required.
|
||||
- Added new test cases to the test suite.
|
||||
|
||||
*** 0.6.10 ***
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
|
||||
#include <ch.h>
|
||||
|
||||
#ifdef CH_USE_SLEEP
|
||||
/**
|
||||
* Suspends the invoking thread for the specified time.
|
||||
* @param time the system ticks number
|
||||
|
@ -32,12 +31,9 @@
|
|||
void chThdSleep(systime_t time) {
|
||||
|
||||
chSysLock();
|
||||
|
||||
chSchGoSleepTimeoutS(PRSLEEP, time);
|
||||
|
||||
chSysUnlock();
|
||||
}
|
||||
#endif /* CH_USE_SLEEP */
|
||||
|
||||
#ifdef CH_USE_SYSTEMTIME
|
||||
/**
|
||||
|
|
|
@ -204,7 +204,6 @@ void chThdResume(Thread *tp) {
|
|||
chSysUnlock();
|
||||
}
|
||||
|
||||
#ifdef CH_USE_TERMINATE
|
||||
/**
|
||||
* Requests a thread termination.
|
||||
* @param tp the pointer to the thread
|
||||
|
@ -215,12 +214,9 @@ void chThdResume(Thread *tp) {
|
|||
void chThdTerminate(Thread *tp) {
|
||||
|
||||
chSysLock();
|
||||
|
||||
tp->p_flags |= P_TERMINATE;
|
||||
|
||||
chSysUnlock();
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Terminates the current thread by specifying an exit status code.
|
||||
|
|
|
@ -135,14 +135,10 @@ struct Thread {
|
|||
/** Thread state: After termination.*/
|
||||
#define PREXIT 10
|
||||
|
||||
#ifdef CH_USE_TERMINATE
|
||||
/** Thread option: Termination requested flag.*/
|
||||
#define P_TERMINATE 1
|
||||
#endif
|
||||
#ifdef CH_USE_RESUME
|
||||
/** Thread option: Create suspended thread.*/
|
||||
#define P_SUSPENDED 2
|
||||
#endif
|
||||
#ifdef CH_USE_MESSAGES_PRIORITY
|
||||
/** Thread option: Serve messages by priority instead of FIFO order.*/
|
||||
#define P_MSGBYPRIO 4
|
||||
|
@ -179,15 +175,9 @@ extern "C" {
|
|||
size_t wsize, tfunc_t pf);
|
||||
void chThdSetPriority(tprio_t newprio);
|
||||
void chThdExit(msg_t msg);
|
||||
#ifdef CH_USE_RESUME
|
||||
void chThdResume(Thread *tp);
|
||||
#endif
|
||||
#ifdef CH_USE_SUSPEND
|
||||
void chThdSuspend(Thread **tpp);
|
||||
#endif
|
||||
#ifdef CH_USE_TERMINATE
|
||||
void chThdTerminate(Thread *tp);
|
||||
#endif
|
||||
#ifdef CH_USE_WAITEXIT
|
||||
msg_t chThdWait(Thread *tp);
|
||||
#endif
|
||||
|
|
|
@ -47,23 +47,6 @@
|
|||
* included in the kernel.*/
|
||||
#define CH_USE_SYSTEMTIME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSleep() function is
|
||||
* included in the kernel.
|
||||
* @note requires \p CH_USE_VIRTUAL_TIMERS.*/
|
||||
#define CH_USE_SLEEP
|
||||
|
||||
/** Configuration option: if specified then the \p chThdResume()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_RESUME
|
||||
|
||||
/** Configuration option: if specified then the \p chThdSuspend()
|
||||
* function is included in the kernel.*/
|
||||
#define CH_USE_SUSPEND
|
||||
|
||||
/** Configuration option: if specified then the \p chThdTerminate()
|
||||
* and \p chThdShouldTerminate() functions are included in the kernel.*/
|
||||
#define CH_USE_TERMINATE
|
||||
|
||||
/** Configuration option: if specified then the \p chThdWait() function
|
||||
* is included in the kernel.*/
|
||||
#define CH_USE_WAITEXIT
|
||||
|
|
Loading…
Reference in New Issue