/* thread phase init */ void rt_init_thread_entry(void *parameter) { rt_components_init(); rti_stub_init(); /* startup rtgui realtouch ui */ realtouch_ui_init(); }
void rt_init_thread_entry(void *parameter) { #ifdef RT_USING_RTGUI { rt_device_t dc; /* init Display Controller */ rt_hw_dc_init(); /* re-init device driver */ rt_device_init_all(); /* find Display Controller device */ dc = rt_device_find("dc"); /* set Display Controller device as rtgui graphic driver */ rtgui_graphic_set_device(dc); } #endif #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif }
void rt_init_thread_entry(void* parameter) { #ifdef RT_USING_LWIP /* initialize eth interface */ rt_hw_stm32_eth_init(); #endif #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif rt_platform_init(); /* do some thing here. */ #if defined(RT_USING_DFS) && defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS) { /* NFSv3 Initialization */ rt_kprintf("begin init NFSv3 File System ...\n"); if (dfs_mount(RT_NULL, "/", "nfs", 0, RT_NFS_HOST_EXPORT) == 0) rt_kprintf("NFSv3 File System initialized!\n"); else rt_kprintf("NFSv3 File System initialzation failed!\n"); } #endif }
void rt_init_thread_entry(void* parameter) { #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif { extern rt_err_t mci_hw_init(const char *device_name); mci_hw_init("sd0"); } /* Filesystem Initialization */ #ifdef RT_USING_DFS { #ifdef RT_USING_DFS_ELMFAT /* mount sd card fat partition 1 as root directory */ if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) { rt_kprintf("File System initialized!\n"); } else rt_kprintf("File System initialzation failed!\n"); #endif } #endif #ifdef RT_USING_USBD { extern rt_err_t rt_ramdisk_init(void); extern rt_err_t lpc_usbd_register(void); lpc_usbd_register(); rt_usb_device_init(); } #endif }
void rt_init_thread_entry(void* parameter) { { extern rt_err_t mci_hw_init(const char *device_name); mci_hw_init("sd0"); } /* initialization RT-Thread Components */ rt_components_init(); /* Filesystem Initialization */ #ifdef RT_USING_DFS { #ifdef RT_USING_DFS_ELMFAT /* mount sd card fat partition 1 as root directory */ if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) { rt_kprintf("File System initialized!\n"); } else rt_kprintf("File System initialzation failed!\n"); #endif } #endif }
void rt_init_thread_entry(void* parameter) { /* init board */ // rt_hw_led_init(); I2C_init(); pwm_init(); Init_MPU6050(); HMC5883L_Initialize(); // at_application_init(); #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif #ifdef RT_USING_FINSH finsh_set_device(RT_CONSOLE_DEVICE_NAME); #endif /* RT_USING_FINSH */ /* Filesystem Initialization */ #if defined(RT_USING_DFS) && defined(RT_USING_DFS_ELMFAT) /* mount sd card fat partition 1 as root directory */ if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) { rt_kprintf("File System initialized!\n"); } else rt_kprintf("File System initialzation failed!\n"); #endif /* RT_USING_DFS */ at_application_init(); BT_application_init(); imu_application_init(); }
void rt_init_thread_entry(void* parameter) { #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif }
void rt_init_thread_entry(void *parameter) { #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif rt_platform_init(); /* Filesystem Initialization */ #ifdef RT_USING_DFS /* mount sd card fat partition 1 as root directory */ if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) { rt_kprintf("File System initialized!\n"); } else rt_kprintf("File System initialzation failed!\n"); #endif #ifdef RT_USING_RTGUI gui_init(); picture_show(); /* initial touch. */ { rt_device_t device; device = rt_device_find("touch"); if (device != RT_NULL) { rt_device_init(device); } } #endif /* RT_USING_RTGUI */ }
static void rt_basic_system_entry(void *parameter) { #ifdef RT_USING_LWIP pcap_netif_hw_init(); #endif /* initialization RT-Thread Components */ rt_platform_init(); rt_components_init(); /* File system Initialization */ #ifdef RT_USING_DFS { #ifdef RT_USING_DFS_WINSHAREDIR { extern rt_err_t rt_win_sharedir_init(const char *name); extern int dfs_win32_init(void); rt_win_sharedir_init("wdd"); dfs_win32_init(); if (dfs_mount("wdd", "/", "wdir", 0, 0) == 0) rt_kprintf("win32 share directory initialized!\n"); else rt_kprintf("win32 share directory initialized failed!\n"); } #endif #ifdef RT_USING_DFS_ELMFAT /* mount sd card fatfs as root directory */ #ifdef _WIN32 if (dfs_mount("sd0", "/disk/sd", "elm", 0, 0) == 0) #else if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) #endif rt_kprintf("fatfs initialized!\n"); else rt_kprintf("fatfs initialization failed!\n"); #endif #ifdef RT_USING_DFS_UFFS /* mount uffs as the nand flash file system */ if (dfs_mount("nand0", "/disk/nand", "uffs", 0, 0) == 0) rt_kprintf("uffs initialized!\n"); else rt_kprintf("uffs initialization failed!\n"); #endif #ifdef RT_USING_DFS_JFFS2 /* mount jffs2 as the nor flash file system */ if (dfs_mount("nor", "/disk/nor", "jffs2", 0, 0) == 0) rt_kprintf("jffs2 initialized!\n"); else rt_kprintf("jffs2 initialization failed!\n"); #endif } #endif }
void rt_init_thread_entry(void *parameter) { /* initialization RT-Thread Components */ rt_components_init(); // Íø¿ÚEMAC³õʼ»¯ rt_hw_eth_init(); }
/* thread phase init */ static void rt_init_thread_entry(void *parameter) { /* do component initialization */ rt_components_init(); rt_kprintf("running on cpu %d\n", rt_cpu_get_smp_id() & 0x0f); /* add your initialization here */ }
static void rt_init_thread_entry(void* parameter) { rt_thread_t system_thread; rt_uint8_t buf[256]; /* Initialization RT-Thread Components */ #ifdef RT_USING_COMPONENTS_INIT rt_components_init(); #endif /* Set finsh device */ #ifdef RT_USING_FINSH finsh_set_device(RT_CONSOLE_DEVICE_NAME); #endif /* RT_USING_FINSH */ rt_hw_led1_off(); //cmx865a_init(); unsigned int count=1000; rt_memset(buf,'\0',256); rt_hw_led_init(); // rt_kprintf("led on, count : %d\r\n",count); //rt_sprintf(buf,"%s","- RT - Thread Operating System"); // ST7585_Write_String(0,5,"- RT - "); //ST7585_Write_String(0,4,"Thread Operating System"); // Draw_bat(3); //b(0,1); r(0); while (1) { /* led1 on */ #ifdef RT_USING_FINSH rt_kprintf("led on , count : %d\r\n",count); #endif // rt_sprintf(buf,"led on , count : %d",count); // ST7585_Write_String(0,5,buf); //test_cmx865a(); count++; rt_hw_led1_off(); rt_thread_delay( RT_TICK_PER_SECOND/2 ); /* sleep 0.5 second and switch to other thread */ /* led1 off */ #ifdef RT_USING_FINSH rt_kprintf("led off\r\n"); #endif // rt_sprintf(buf,"led off, count : %d",count); // ST7585_Write_String(0,5,buf); rt_hw_led1_on(); rt_thread_delay( RT_TICK_PER_SECOND/2 ); } }
void rt_init_thread_entry(void* parameter) { /* initialization RT-Thread Components */ #ifdef RT_USING_COMPONENTS_INIT rt_components_init(); #endif rt_hw_userled_init(); }
void rt_init_thread_entry(void* parameter) { #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif #ifdef RT_USING_FINSH finsh_set_device(RT_CONSOLE_DEVICE_NAME); #endif /* RT_USING_FINSH */ /* Filesystem Initialization */ #if defined(RT_USING_DFS) && defined(RT_USING_DFS_ELMFAT) /* mount sd card fat partition 1 as root directory */ if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) { rt_kprintf("File System initialized!\n"); } else rt_kprintf("File System initialzation failed!\n"); #endif /* RT_USING_DFS */ #ifdef RT_USING_RTGUI { extern void rt_hw_lcd_init(); extern void rtgui_touch_hw_init(void); rt_device_t lcd; /* init lcd */ rt_hw_lcd_init(); /* init touch panel */ rtgui_touch_hw_init(); /* re-init device driver */ rt_device_init_all(); /* find lcd device */ lcd = rt_device_find("lcd"); /* set lcd device as rtgui graphic driver */ rtgui_graphic_set_device(lcd); #ifndef RT_USING_COMPONENTS_INIT /* init rtgui system server */ rtgui_system_server_init(); #endif calibration_set_restore(cali_setup); calibration_set_after(cali_store); calibration_init(); } #endif /* #ifdef RT_USING_RTGUI */ }
/* thread phase init */ void rt_init_thread_entry(void *parameter) { /* Initialization RT-Thread Components */ rt_components_init(); #ifdef RT_USING_FINSH finsh_set_device(RT_CONSOLE_DEVICE_NAME); #endif #ifdef RT_USING_LWIP rt_hw_tiva_eth_init(); #endif }
void rt_init_thread_entry(void* parameter) { #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif #ifdef RT_USING_FINSH finsh_set_device(RT_CONSOLE_DEVICE_NAME); #endif /* RT_USING_FINSH */ }
int rt_application_init() { pthread_t tid; /* do component initialization */ rt_components_init(); libc_system_init(RT_CONSOLE_DEVICE_NAME); finsh_set_device(RT_CONSOLE_DEVICE_NAME); pthread_create(&tid, RT_NULL, test_task, RT_NULL); return 0; }
void rt_init_thread_entry(void* parameter) { #ifdef RT_USING_LWIP /* initialize eth interface */ lpc_emac_hw_init(); #endif #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif { extern rt_err_t mci_hw_init(const char *device_name); mci_hw_init("sd0"); } /* Filesystem Initialization */ #ifdef RT_USING_DFS { #ifdef RT_USING_DFS_ELMFAT /* mount sd card fat partition 1 as root directory */ if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) { rt_kprintf("File System initialized!\n"); #if (RT_DFS_ELM_USE_LFN != 0) && (defined RT_DFS_ELM_CODE_PAGE_FILE) { extern void ff_convert_init(void); ff_convert_init(); } #endif } else rt_kprintf("File System initialzation failed!\n"); #endif } #endif /* do some thing here. */ #if defined(RT_USING_DFS) && defined(RT_USING_LWIP) /* start ftp server */ rt_kprintf("ftp server begin...\n"); ftpd_start(); rt_kprintf("ftp server started!!\n"); #endif }
/* the system main thread */ void main_thread_entry(void *parameter) { extern int main(void); extern int $Super$$main(void); /* RT-Thread components initialization */ rt_components_init(); /* invoke system main function */ #ifdef __CC_ARM $Super$$main(); /* for ARMCC. */ #else main(); #endif }
void main_thread_entry(void *parameter) { extern int main(void); extern int $Super$$main(void); /* RT-Thread components initialization */ rt_components_init(); /* invoke system main function */ #if defined (__CC_ARM) $Super$$main(); /* for ARMCC. */ // 此时才会去调用main函数 #elif defined(__ICCARM__) || defined(__GNUC__) main(); #endif }
void rt_init_thread_entry(void *parameter) { #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif #ifdef RT_USING_LWIP /* initialize eth interface */ rt_hw_wifi_init("spi01", MODE_STATION); // MODE_STATION MODE_SOFTAP rw009_join("you_AP", "you_passwd"); set_if("w0", "192.168.1.30", "192.168.1.1", "255.255.255.0"); //rt_hw_wifi_init("spi01", MODE_SOFTAP); // MODE_STATION MODE_SOFTAP //rw009_softap(WIFI_AP_SSID, WIFI_AP_PASS, WIFI_AP_SEC, WIFI_AP_CHANNEL); //dhcpd_start(); #endif /* RT_USING_LWIP */ }
void rt_init_thread_entry(void* parameter) { /* initialization RT-Thread Components */ #ifdef RT_USING_COMPONENTS_INIT rt_components_init(); #endif #ifdef RT_USING_DFS #ifdef RT_USING_DFS_ELMFAT /* mount spi flash as root directory */ if (dfs_mount("W25Q64", "/", "elm", 0, 0) == 0) { rt_kprintf("spi flash mount to / !\n"); } else { rt_kprintf("spi flash mount to / failed!\n"); } /* mount sd card fat partition 0 as root directory */ if (dfs_mount("sd0", "/sd0", "elm", 0, 0) == 0) { rt_kprintf("sd0 mount to /sd0 !\n"); } else { rt_kprintf("sd0 mount to /sd0 failed!\n"); } #endif /* RT_USING_DFS_ELMFAT */ #endif /* DFS */ #ifdef RT_USING_GUIENGINE { rt_device_t device; device = rt_device_find("lcd"); /* re-set graphic device */ rtgui_graphic_set_device(device); rt_gui_demo_init(); } #endif }
void rt_init_thread_entry(void *parameter) { #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif //finsh_system_init(); finsh_set_device(RT_CONSOLE_DEVICE_NAME); /**< init led device */ { extern void rt_led_hw_init(void); rt_led_hw_init(); } { extern int demo_init(void); demo_init(); } }
void rt_init_thread_entry(void* parameter) { #ifdef RT_USING_LWIP /* initialize eth interface */ rt_hw_stm32_eth_init(); #endif #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif rt_platform_init(); /* do some thing here. */ #if defined(RT_USING_DFS) && defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS) { /* NFSv3 Initialization */ rt_kprintf("begin init NFSv3 File System ...\n"); if (dfs_mount(RT_NULL, "/", "nfs", 0, RT_NFS_HOST_EXPORT) == 0) rt_kprintf("NFSv3 File System initialized!\n"); else rt_kprintf("NFSv3 File System initialzation failed!\n"); } #endif k9f2g08_nand_init(); FSMC_NAND_Init(); FSMC_NAND_ReadID(&NAND_ID); rt_kprintf("\tMaker = %02x\n", NAND_ID.Maker_ID); rt_kprintf("\tdevice = %02x\n", NAND_ID.Device_ID); rt_kprintf("\tThird = %02x\n", NAND_ID.Third_ID); rt_kprintf("\tFourth = %02x\n", NAND_ID.Fourth_ID); nand_test(); }
void rt_init_thread_entry(void *parameter) { #ifdef RT_USING_LWIP #ifdef RT_USING_TAPNETIF tap_netif_hw_init(); #else pcap_netif_hw_init(); #endif #endif rt_platform_init(); /* initialization RT-Thread Components */ rt_components_init(); #ifdef RT_USING_RTGUI /* start sdl thread to simulate an LCD. SDL may depend on DFS and should be * called after rt_components_init. */ rt_hw_sdl_start(); #endif /* RT_USING_RTGUI */ /* File system Initialization */ #ifdef RT_USING_DFS { #ifdef RT_USING_DFS_WINSHAREDIR { extern rt_err_t rt_win_sharedir_init(const char *name); extern int dfs_win32_init(void); rt_win_sharedir_init("wdd"); dfs_win32_init(); if (dfs_mount("wdd", "/", "wdir", 0, 0) == 0) rt_kprintf("win32 share directory initialized!\n"); else rt_kprintf("win32 share directory initialized failed!\n"); } #endif #ifdef RT_USING_DFS_ELMFAT /* mount sd card fatfs as root directory */ #ifdef _WIN32 if (dfs_mount("sd0", "/disk/sd", "elm", 0, 0) == 0) #else if (dfs_mount("sd0", "/", "elm", 0, 0) == 0) #endif rt_kprintf("fatfs initialized!\n"); else rt_kprintf("fatfs initialization failed!\n"); #endif #ifdef RT_USING_DFS_UFFS /* mount uffs as the nand flash file system */ if (dfs_mount("nand0", "/disk/nand", "uffs", 0, 0) == 0) rt_kprintf("uffs initialized!\n"); else rt_kprintf("uffs initialization failed!\n"); #endif #ifdef RT_USING_DFS_JFFS2 /* mount jffs2 as the nor flash file system */ if (dfs_mount("nor", "/disk/nor", "jffs2", 0, 0) == 0) rt_kprintf("jffs2 initialized!\n"); else rt_kprintf("jffs2 initialization failed!\n"); #endif } #endif }
/* thread phase init */ void rt_init_thread_entry(void *parameter) { rt_components_init(); rti_stub_init(); }
/** * This function will startup RT-Thread RTOS. */ void rtthread_startup(void) { extern void cpu_usage_init(void); /* init board */ rt_hw_board_init(); /* show version */ rt_show_version(); /* init tick */ rt_system_tick_init(); /* init kernel object */ rt_system_object_init(); /* init timer system */ rt_system_timer_init(); #ifdef RT_USING_HEAP /* init memory system */ rt_system_heap_init((void*)STM32_SRAM_BEGIN, (void*)STM32_SRAM_END); #endif /* init scheduler system */ rt_system_scheduler_init(); /* initialize timer */ rt_system_timer_init(); /* init timer thread */ rt_system_timer_thread_init(); /* Add CPU usage to system */ cpu_usage_init(); #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif #ifdef RT_USING_FINSH /* init finsh */ finsh_system_init(); finsh_set_device(RT_CONSOLE_DEVICE_NAME); #endif #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif /* init application */ rt_application_init(); /* init idle thread */ rt_thread_idle_init(); /* start scheduler */ rt_system_scheduler_start(); /* never reach here */ return; }
void init_thread(void* parameter) { rt_components_init(); }
/** * This function will startup RT-Thread RTOS. */ void rtthread_startup(void) { /* init board */ rt_hw_board_init(); /* show version */ rt_show_version(); /* init tick */ rt_system_tick_init(); /* init kernel object */ rt_system_object_init(); /* init timer system */ rt_system_timer_init(); #ifdef RT_USING_HEAP #ifdef __CC_ARM rt_system_heap_init((void*)&Image$$RW_IRAM1$$ZI$$Limit, (void*)STM32_SRAM_END); #elif __ICCARM__ rt_system_heap_init(__segment_end("HEAP"), (void*)STM32_SRAM_END); #else /* init memory system */ rt_system_heap_init((void*)&__bss_end, (void*)STM32_SRAM_END); #endif #endif /* init scheduler system */ rt_system_scheduler_init(); /* initialize timer */ rt_system_timer_init(); /* init timer thread */ rt_system_timer_thread_init(); /* Add CPU usage to system */ cpu_usage_init(); #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif #ifdef RT_USING_FINSH /* init finsh */ finsh_system_init(); finsh_set_device(RT_CONSOLE_DEVICE_NAME); #endif #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif /* init application */ rt_application_init(); /* init idle thread */ rt_thread_idle_init(); /* start scheduler */ rt_system_scheduler_start(); /* never reach here */ return; }
void rt_init_thread_entry(void* parameter) { #ifdef RT_USING_COMPONENTS_INIT /* initialization RT-Thread Components */ rt_components_init(); #endif /* LwIP Initialization */ #ifdef RT_USING_LWIP { extern void lwip_sys_init(void); /* register ethernetif device */ eth_system_device_init(); rt_hw_stm32_eth_init(); /* re-init device driver */ rt_device_init_all(); /* init lwip system */ lwip_sys_init(); rt_kprintf("TCP/IP initialized!\n"); } #endif //FS #ifdef RT_USING_DFS dfs_init(); #ifdef RT_USING_MTD_NAND nand_mtd_init(); dfs_uffs_init(); if (dfs_mount("psram0", "/", "uffs", 0, 0) == 0) { rt_kprintf("uffs mount / partion ok\n"); } else rt_kprintf("uffs mount / partion failed!\n"); #endif #endif rt_hw_lcd_init(); //GUI #ifdef RT_USING_RTGUI { extern void rt_hw_lcd_init(); //extern void rtgui_touch_hw_init(void); rt_device_t lcd; /* init lcd */ rt_hw_lcd_init(); /* init touch panel */ //rtgui_touch_hw_init(); /* find lcd device */ lcd = rt_device_find("lcd"); /* set lcd device as rtgui graphic driver */ rtgui_graphic_set_device(lcd); #ifndef RT_USING_COMPONENTS_INIT /* init rtgui system server */ rtgui_system_server_init(); #endif //calibration_set_restore(cali_setup); //calibration_set_after(cali_store); //calibration_init(); } #endif /* #ifdef RT_USING_RTGUI */ }