mirror of https://github.com/rusefi/ChibiOS.git
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@429 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
250ee8cdd4
commit
fceb645e35
|
@ -96,12 +96,10 @@ namespace chibios_rt {
|
||||||
chThdSetPriority(newprio);
|
chThdSetPriority(newprio);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CH_USE_RESUME
|
|
||||||
void BaseThread::Resume(void) {
|
void BaseThread::Resume(void) {
|
||||||
|
|
||||||
chThdResume(thread_ref);
|
chThdResume(thread_ref);
|
||||||
}
|
}
|
||||||
#endif /* CH_USE_RESUME */
|
|
||||||
|
|
||||||
#ifdef CH_USE_TERMINATE
|
#ifdef CH_USE_TERMINATE
|
||||||
void BaseThread::Terminate(void) {
|
void BaseThread::Terminate(void) {
|
||||||
|
@ -110,7 +108,6 @@ namespace chibios_rt {
|
||||||
}
|
}
|
||||||
#endif /* CH_USE_TERMINATE */
|
#endif /* CH_USE_TERMINATE */
|
||||||
|
|
||||||
#ifdef CH_USE_SLEEP
|
|
||||||
void BaseThread::Sleep(systime_t n) {
|
void BaseThread::Sleep(systime_t n) {
|
||||||
|
|
||||||
chThdSleep(n);
|
chThdSleep(n);
|
||||||
|
@ -122,7 +119,6 @@ namespace chibios_rt {
|
||||||
chThdSleepUntil(time);
|
chThdSleepUntil(time);
|
||||||
}
|
}
|
||||||
#endif /* CH_USE_SYSTEMTIME */
|
#endif /* CH_USE_SYSTEMTIME */
|
||||||
#endif /* CH_USE_SLEEP */
|
|
||||||
|
|
||||||
#ifdef CH_USE_MESSAGES
|
#ifdef CH_USE_MESSAGES
|
||||||
msg_t BaseThread::SendMessage(::Thread* tp, msg_t msg) {
|
msg_t BaseThread::SendMessage(::Thread* tp, msg_t msg) {
|
||||||
|
|
|
@ -115,26 +115,21 @@ namespace chibios_rt {
|
||||||
msg_t Wait(void);
|
msg_t Wait(void);
|
||||||
#endif /* CH_USE_WAITEXIT */
|
#endif /* CH_USE_WAITEXIT */
|
||||||
|
|
||||||
#ifdef CH_USE_RESUME
|
|
||||||
/**
|
/**
|
||||||
* Resumes thread.
|
* Resumes thread.
|
||||||
*/
|
*/
|
||||||
void Resume(void);
|
void Resume(void);
|
||||||
#endif /* CH_USE_RESUME */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Change thread priority.
|
* Change thread priority.
|
||||||
*/
|
*/
|
||||||
static void SetPriority(tprio_t newprio);
|
static void SetPriority(tprio_t newprio);
|
||||||
|
|
||||||
#ifdef CH_USE_TERMINATE
|
|
||||||
/**
|
/**
|
||||||
* Requests thread termination.
|
* Requests thread termination.
|
||||||
*/
|
*/
|
||||||
void Terminate(void);
|
void Terminate(void);
|
||||||
#endif /* CH_USE_TERMINATE */
|
|
||||||
|
|
||||||
#ifdef CH_USE_SLEEP
|
|
||||||
/**
|
/**
|
||||||
* Suspends the thread execution for the specified number of system ticks.
|
* Suspends the thread execution for the specified number of system ticks.
|
||||||
*/
|
*/
|
||||||
|
@ -146,7 +141,6 @@ namespace chibios_rt {
|
||||||
*/
|
*/
|
||||||
static void SleepUntil(systime_t time);
|
static void SleepUntil(systime_t time);
|
||||||
#endif /* CH_USE_SYSTEMTIME */
|
#endif /* CH_USE_SYSTEMTIME */
|
||||||
#endif /* CH_USE_SLEEP */
|
|
||||||
|
|
||||||
#ifdef CH_USE_MESSAGES
|
#ifdef CH_USE_MESSAGES
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue