From e5bd63772994b9b9aa448c43870acf3580efaab7 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 4 Jul 2008 09:50:46 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@332 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/chinit.c | 3 ++- src/chthreads.c | 39 ++++++++++++++++++++++++++++++++++----- src/include/threads.h | 2 ++ 3 files changed, 38 insertions(+), 6 deletions(-) (limited to 'src') 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:
*