bsp/rv32m1_vega_hybrid/risc-v/app/board/startup.c
/**
 * This function will startup RT-Thread RTOS.
 */
This function will startup RT-Thread RTOS.
This function will startup RT - Thread RTOS .
int rtthread_startup(void)
{
    rt_hw_interrupt_disable();
    rt_hw_board_init();
    rt_show_version();
    rt_system_timer_init();
    rt_system_scheduler_init();
#ifdef RT_USING_SIGNALS
    rt_system_signal_init();
#endif
    rt_application_init();
    rt_system_timer_thread_init();
    rt_thread_idle_init();
#ifdef RT_USING_SMP
    rt_hw_spin_lock(&_cpus_lock);
#endif 
    rt_system_scheduler_start();
    return 0;    
}
int rtthread_startup ( void ) { rt_hw_interrupt_disable ( ) ; rt_hw_board_init ( ) ; rt_show_version ( ) ; rt_system_timer_init ( ) ; rt_system_scheduler_init ( ) ; #ifdef RT_USING_SIGNALS rt_system_signal_init ( ) ; #endif rt_application_init ( ) ; rt_system_timer_thread_init ( ) ; rt_thread_idle_init ( ) ; #ifdef RT_USING_SMP rt_hw_spin_lock ( & _cpus_lock ) ; #endif rt_system_scheduler_start ( ) ; return 0 ; }
This function will startup RT-Thread RTOS.
This function will startup RT - Thread RTOS .
/* board level initialization
     * NOTE: please initialize heap inside board initialization.
     */ /* show RT-Thread version */ /* timer system initialization */ /* scheduler system initialization */ /* signal system initialization */ /* create init_thread */ /* timer thread initialization */ /* idle thread initialization */ /*RT_USING_SMP*/ /* start scheduler */ /* never reach here */ /* never reach here */