diff --git a/demos/ARM7-LPC214x-GCC/main.c b/demos/ARM7-LPC214x-GCC/main.c index 10cae19da..d83a386d5 100644 --- a/demos/ARM7-LPC214x-GCC/main.c +++ b/demos/ARM7-LPC214x-GCC/main.c @@ -131,8 +131,8 @@ int main(int argc, char **argv) { * are not started in order to make accurate benchmarks. */ if ((IO0PIN & 0x00018000) == 0x00018000) { - chThdCreate(NORMALPRIO, 0, waThread1, sizeof(waThread1), Thread1, NULL); - chThdCreate(NORMALPRIO, 0, waThread2, sizeof(waThread2), Thread2, NULL); + chThdCreateFast(NORMALPRIO, waThread1, sizeof(waThread1), Thread1); + chThdCreateFast(NORMALPRIO, waThread2, sizeof(waThread2), Thread2); } /* diff --git a/readme.txt b/readme.txt index 51f0be398..5fbee71f4 100644 --- a/readme.txt +++ b/readme.txt @@ -75,10 +75,14 @@ Win32-MinGW - ChibiOS/RT simulator and demo into a WIN32 process, ***************************************************************************** *** 0.6.7 *** +- NEW: New chThdCreateFast() API, it is a simplified form of chThdCreate() + that allows even faster threads creation. The new API does not support + the "mode" and "arg" parameters (still available in the old API). - OPT: Removed an unrequired initialization from the chThdCreate(). - OPT: Improvements to the test framework, now a virtual timer is used instead of software loops into the bechmarks in order to have more stable results. - Added the C++ wrapper entries to the documentation. +- Fixed the documentation entry for the chThdCreate() API. *** 0.6.6 *** - NEW: Improved test suite, now the suite is divided in modules and the code diff --git a/src/chinit.c b/src/chinit.c index ec7626e6a..5b2c0cd24 100644 --- a/src/chinit.c +++ b/src/chinit.c @@ -55,7 +55,8 @@ void chSysInit(void) { * serve interrupts in its context while keeping the lowest energy saving * mode compatible with the system status. */ - chThdCreate(IDLEPRIO, 0, waIdleThread, sizeof(waIdleThread), (tfunc_t)_IdleThread, NULL); + chThdCreateFast(IDLEPRIO, waIdleThread, + sizeof(waIdleThread), (tfunc_t)_IdleThread); } /** diff --git a/src/chthreads.c b/src/chthreads.c index 33c75dd45..d12bced10 100644 --- a/src/chthreads.c +++ b/src/chthreads.c @@ -62,9 +62,8 @@ static void memfill(uint8_t *p, uint32_t n, uint8_t v) { /** * Creates a new thread. * @param prio the priority level for the new thread. Usually the threads are - * created with priority \p NORMALPRIO (128), priorities - * can range from \p LOWPRIO (1) to \p HIGHPRIO - * (255). + * created with priority \p NORMALPRIO, priorities + * can range from \p LOWPRIO to \p HIGHPRIO. * @param mode the creation option flags for the thread. The following options * can be OR'ed in this parameter:
*