aboutsummaryrefslogtreecommitdiffstats
path: root/os/kernel/src/chsys.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-02-06 10:55:53 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-02-06 10:55:53 +0000
commitf17db1931e95f5ebb42f557b6eead2bf1320db5a (patch)
tree0676532b6f3231f6c7343b3f644cdc5282433090 /os/kernel/src/chsys.c
parent6f7c30adff593e365515898082436f893f2ccb00 (diff)
downloadChibiOS-f17db1931e95f5ebb42f557b6eead2bf1320db5a.tar.gz
ChibiOS-f17db1931e95f5ebb42f557b6eead2bf1320db5a.tar.bz2
ChibiOS-f17db1931e95f5ebb42f557b6eead2bf1320db5a.zip
Reformatted doxygen tags into the kernel sources to make them more readable.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1567 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chsys.c')
-rw-r--r--os/kernel/src/chsys.c35
1 files changed, 16 insertions, 19 deletions
diff --git a/os/kernel/src/chsys.c b/os/kernel/src/chsys.c
index 2863f253c..8c252609d 100644
--- a/os/kernel/src/chsys.c
+++ b/os/kernel/src/chsys.c
@@ -18,8 +18,9 @@
*/
/**
- * @file chsys.c
- * @brief System related code.
+ * @file chsys.c
+ * @brief System related code.
+ *
* @addtogroup system
* @{
*/
@@ -29,7 +30,7 @@
static WORKING_AREA(idle_thread_wa, IDLE_THREAD_STACK_SIZE);
/**
- * @brief This function implements the idle thread infinite loop.
+ * @brief This function implements the idle thread infinite loop.
* @details The function puts the processor in the lowest power mode capable
* to serve interrupts.<br>
* The priority is internally set to the minimum system value so
@@ -48,13 +49,12 @@ static void idle_thread(void *p) {
}
/**
- * @brief ChibiOS/RT initialization.
+ * @brief ChibiOS/RT initialization.
* @details After executing this function the current instructions stream
* becomes the main thread.
- *
- * @note Interrupts should be still disabled when @p chSysInit() is invoked
- * and are internally enabled.
- * @note The main thread is created with priority @p NORMALPRIO.
+ * @note Interrupts should be still disabled when @p chSysInit() is invoked
+ * and are internally enabled.
+ * @note The main thread is created with priority @p NORMALPRIO.
*/
void chSysInit(void) {
static Thread mainthread;
@@ -72,29 +72,26 @@ void chSysInit(void) {
trace_init();
#endif
- /*
- * Now this instructions flow becomes the main thread.
- */
+ /* Now this instructions flow becomes the main thread.*/
(currp = init_thread(&mainthread, NORMALPRIO))->p_state = THD_STATE_CURRENT;
chSysEnable();
- /*
- * This thread has the lowest priority in the system, its role is just to
- * serve interrupts in its context while keeping the lowest energy saving
- * mode compatible with the system status.
- */
+ /* This thread has the lowest priority in the system, its role is just to
+ serve interrupts in its context while keeping the lowest energy saving
+ mode compatible with the system status.*/
chThdCreateStatic(idle_thread_wa, sizeof(idle_thread_wa), IDLEPRIO,
(tfunc_t)idle_thread, NULL);
}
/**
- * @brief Handles time ticks for round robin preemption and timer increments.
+ * @brief Handles time ticks for round robin preemption and timer increments.
* @details Decrements the remaining time quantum of the running thread
* and preempts it when the quantum is used up. Increments system
* time and manages the timers.
*
- * @note The frequency of the timer determines the system tick granularity and,
- * together with the @p CH_TIME_QUANTUM macro, the round robin interval.
+ * @note The frequency of the timer determines the system tick granularity
+ * and, together with the @p CH_TIME_QUANTUM macro, the round robin
+ * interval.
*/
void chSysTimerHandlerI(void) {