From f17db1931e95f5ebb42f557b6eead2bf1320db5a Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 6 Feb 2010 10:55:53 +0000 Subject: 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 --- os/kernel/src/chsys.c | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) (limited to 'os/kernel/src/chsys.c') 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.
* 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) { -- cgit v1.2.3