예제 #1
0
파일: sys.c 프로젝트: othane/mos
// setup the basic components of any system
void sys_init(void)
{
	sys_clk_init();
	sys_interrupt_init();
	sys_tick_init();
	sys_temp_init();
	sys_log_init();
}
예제 #2
0
/*
 * kernel_run
 * This function starts the operating system. In normal operation this function
 * should never return.
 */
void kernel_run(void)
{
#ifndef SYS_LOG_NONE
    /* Initialize system logging. */
    sys_log_init();
#endif

    /* Initialize system clock. */
    system_tick_Init();

    /* Get the first task that is needed to run. */
    current_task = scheduler_get_next_task();

    /* Load/restore task's context. */
    RESTORE_CONTEXT_FIRST();

} /* kernel_run */