git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@541 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
7f7cdc881e
commit
866e26bd21
|
@ -90,6 +90,8 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process,
|
|||
- Small fixes to the documentation.
|
||||
|
||||
*** 0.8.2 ***
|
||||
- NEW: Introduced new API chThdSleepS() as a macro, no real changes in the
|
||||
kernel code.
|
||||
- FIX: Included the files that were missing from version 0.8.1 distribution.
|
||||
- FIX: Duplicated sections in the documentation removed.
|
||||
- FIX: Minor problem in Cortex-M3 and AVR ports when the kernel is compiled
|
||||
|
|
|
@ -294,7 +294,7 @@ void chThdTerminate(Thread *tp) {
|
|||
void chThdSleep(systime_t time) {
|
||||
|
||||
chSysLock();
|
||||
chSchGoSleepTimeoutS(PRSLEEP, time);
|
||||
chThdSleepS(time);
|
||||
chSysUnlock();
|
||||
}
|
||||
|
||||
|
@ -307,7 +307,7 @@ void chThdSleepUntil(systime_t time) {
|
|||
|
||||
chSysLock();
|
||||
if ((time -= chSysGetTime()) > 0)
|
||||
chSchGoSleepTimeoutS(PRSLEEP, time);
|
||||
chThdSleepS(time);
|
||||
chSysUnlock();
|
||||
}
|
||||
|
||||
|
|
|
@ -265,6 +265,12 @@ extern "C" {
|
|||
#define chThdCreateFast(prio, workspace, wsize, pf) \
|
||||
chThdCreateStatic(workspace, wsize, prio, pf, NULL)
|
||||
|
||||
/**
|
||||
* Suspends the invoking thread for the specified time.
|
||||
* @param time the delay in system ticks
|
||||
*/
|
||||
#define chThdSleepS(time) chSchGoSleepTimeoutS(PRSLEEP, time)
|
||||
|
||||
/**
|
||||
* Delays the invoking thread for the specified number of seconds.
|
||||
* @note The specified time is rounded up to a value allowed by the real
|
||||
|
|
Loading…
Reference in New Issue