void rt_hw_led_init(void) { led_io_init(); led1_thread = rt_thread_create("led1", led1_thread_entry, RT_NULL, 384, 29, 5); if (led1_thread != RT_NULL) rt_thread_startup(led1_thread); led2_thread = rt_thread_create("led2", led2_thread_entry, RT_NULL, 384, 30, 5); if (led2_thread != RT_NULL) rt_thread_startup(led2_thread); }
static void init_system_component() { // timer init_system_tick(); // power power_io_init(); alter_beep_protect(); speak_init_params(); init_beep_io(); led_io_init(); // init_adc(); uart_Init(); }