Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.
Fork of mbed-rtos by
Diff: RTX_Conf_CM.c
- Revision:
- 1:01158bb7600c
- Parent:
- 0:3cf1dd27c89c
- Child:
- 2:4629f61a197e
--- a/RTX_Conf_CM.c Fri Jun 22 15:35:30 2012 +0000
+++ b/RTX_Conf_CM.c Thu Jul 12 08:26:49 2012 +0000
@@ -34,9 +34,6 @@
#include "cmsis_os.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
/*----------------------------------------------------------------------------
* RTX User configuration part BEGIN
@@ -46,6 +43,7 @@
//
// <h>Thread Configuration
// =======================
+//
// <o>Number of concurrent running threads <0-250>
// <i> Defines max. number of threads that will run at the same time.
// counting "main", but not counting "osTimerThread"
@@ -80,13 +78,6 @@
#define OS_MAINSTKSIZE WORDS_STACK_SIZE
#endif
-// <o>Total stack size [bytes] for threads with user-provided stack size <0-4096:8><#/4>
-// <i> Defines the combined stack size for threads with user-provided stack size.
-// <i> Default: 0
-#ifndef OS_PRIVSTKSIZE
- #define OS_PRIVSTKSIZE (OS_PRIVCNT * WORDS_STACK_SIZE)
-#endif
-
// <q>Check for stack overflow
// ===========================
// <i> Includes the stack checking code for stack overflow.
@@ -156,7 +147,8 @@
// <o>Timer Thread Priority
// <1=> Low
-// <2=> Below Normal <3=> Normal
+// <2=> Below Normal
+// <3=> Normal
// <4=> Above Normal
// <5=> High
// <6=> Realtime
@@ -209,6 +201,7 @@
/*----------------------------------------------------------------------------
* RTX User configuration part END
*---------------------------------------------------------------------------*/
+
#define OS_TRV ((uint32_t)(((double)OS_CLOCK*(double)OS_TICK)/1E6)-1)
@@ -249,13 +242,8 @@
* RTX Configuration Functions
*---------------------------------------------------------------------------*/
-
#include "RTX_CM_lib.h"
-#ifdef __cplusplus
-}
-#endif
-
/*----------------------------------------------------------------------------
* end of file
*---------------------------------------------------------------------------*/
