aboutsummaryrefslogtreecommitdiffstats
path: root/os/ports/cosmic
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-02-06 19:45:47 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-02-06 19:45:47 +0000
commit4401d0e7b2874074e37c90e0178667a854d0da1f (patch)
tree423d9ede640b9a9452e89392bcf7a7b6f9a5e464 /os/ports/cosmic
parent28c1f163a94e9aaad5d4ec3f9534b89677f9e5b1 (diff)
downloadChibiOS-4401d0e7b2874074e37c90e0178667a854d0da1f.tar.gz
ChibiOS-4401d0e7b2874074e37c90e0178667a854d0da1f.tar.bz2
ChibiOS-4401d0e7b2874074e37c90e0178667a854d0da1f.zip
Round robin scheduling improvements.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3930 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/cosmic')
-rw-r--r--os/ports/cosmic/STM8/chtypes.h60
1 files changed, 11 insertions, 49 deletions
diff --git a/os/ports/cosmic/STM8/chtypes.h b/os/ports/cosmic/STM8/chtypes.h
index c957863d4..9c1749a96 100644
--- a/os/ports/cosmic/STM8/chtypes.h
+++ b/os/ports/cosmic/STM8/chtypes.h
@@ -47,55 +47,17 @@ typedef uint8_t uint_fast8_t; /**< C99-style 8 bits unsigned. */
typedef uint16_t uint_fast16_t; /**< C99-style 16 bits unsigned. */
typedef uint32_t uint_fast32_t; /**< C99-style 32 bits unsigned. */
-/**
- * @brief Boolean, recommended the fastest signed.
- */
-typedef int8_t bool_t;
-
-/**
- * @brief Thread mode flags, uint8_t is ok.
- */
-typedef uint8_t tmode_t;
-
-/**
- * @brief Thread state, uint8_t is ok.
- */
-typedef uint8_t tstate_t;
-
-/**
- * @brief Thread references counter, uint8_t is ok.
- */
-typedef uint8_t trefs_t;
-
-/**
- * @brief Priority, use the fastest unsigned type.
- */
-typedef uint8_t tprio_t;
-
-/**
- * @brief Message, use signed pointer equivalent.
- */
-typedef int16_t msg_t;
-
-/**
- * @brief Event Id, use fastest signed.
- */
-typedef int8_t eventid_t;
-
-/**
- * @brief Event Mask, recommended fastest unsigned.
- */
-typedef uint8_t eventmask_t;
-
-/**
- * @brief System Time, recommended fastest unsigned.
- */
-typedef uint16_t systime_t;
-
-/**
- * @brief Counter, recommended fastest signed.
- */
-typedef int8_t cnt_t;
+typedef int8_t bool_t; /**< Fast boolean type. */
+typedef uint8_t tmode_t; /**< Thread flags. */
+typedef uint8_t tstate_t; /**< Thread state. */
+typedef uint8_t trefs_t; /**< Thread references counter. */
+typedef uint8_t tslices_t; /**< Thread time slices counter. */
+typedef uint8_t tprio_t; /**< Thread priority. */
+typedef int16_t msg_t; /**< Inter-thread message. */
+typedef int8_t eventid_t; /**< Event Id. */
+typedef uint8_t eventmask_t; /**< Events mask. */
+typedef uint16_t systime_t; /**< System time. */
+typedef int8_t cnt_t; /**< Resources counter. */
/**
* @brief Inline function modifier.