/*** This is the parent task entry ***/ void main_task (void) { #ifdef CYASSL_KEIL_TCP_NET init_TcpNet (); os_tsk_create (tcp_tick, 2); os_tsk_create (tcp_poll, 1); #endif #ifdef CYASSL_MDK_SHELL #ifdef HAVE_KEIL_RTX os_tsk_create_user(shell_main, 1, Shell_stack, SHELL_STACKSIZE) ; #else shell_main() ; #endif #else /************************************/ /*** USER APPLICATION HERE ***/ /************************************/ printf("USER LOGIC STARTED\n") ; #endif #ifdef HAVE_KEIL_RTX CYASSL_MSG("Terminating tcp_main\n") ; os_tsk_delete_self (); #endif }
int main() { sys_start(); uart_soft_init(&uart, &pin_d4_dev, &pin_d3_dev, &exti_d3_dev, 9600, qinbuf, sizeof(qinbuf)); fs_command_init(&cmd_at, CSTR("/at"), cmd_at_cb, NULL); fs_command_register(&cmd_at); std_printf(FSTR("Welcome to HC-0X configuration tool!\r\n" "\r\n" "SETUP: Connect pin34 to VCC so the device enters AT mode.\r\n" "\r\n" "Type 'at' to start communicating with the device.\r\n")); shell_init(&shell, sys_get_stdin(), sys_get_stdout(), NULL, NULL, NULL, NULL); shell_main(&shell); return (0); }
main(int argc, char **argv, char **envp) #endif { shinstance *psh; /* * Global initializations. */ setlocale(LC_ALL, ""); #ifdef _MSC_VER init_syntax(); #endif /* * Check for --version and --help. */ if (argc > 1 && argv[1][0] == '-' && argv[1][1] == '-') { if (!strcmp(argv[1], "--help")) return usage(argv[0]); if (!strcmp(argv[1], "--version")) return version(argv[0]); } /* * Create the root shell instance. */ psh = sh_create_root_shell(NULL, argc, argv, envp); if (!psh) return 2; shthread_set_shell(psh); shell_main(psh, argc, psh->argptr); /* Not reached. */ return 89; }
void shell_init(uint32 rd, uint32 kh, uint32 fb){ // Ok so if there is no "REAL" shell we jump to this // Debug Shell SPECS / TODOS / IMPLEMENTS // 1, Ability to print kernel addresses - DONE // 2, RamDisk control and file management(ls, read, etc) // 3, Load a Prog manually(just in case the kernel managed to f**k up) // 4, (When Implemented) Load GaugeVM progs ramdisk_addr = rd; kheap_addr = kh; fb_addr = fb; shell_main(); }
int main() { void *arg = NULL ; SystemClock_Config() ; #if !defined(NO_FILESYSTEM) init_filesystem (); #endif netInitialize() ; osDelay(300) ; #if defined(DEBUG_WOLFSSL) printf("Turning ON Debug message\n") ; wolfSSL_Debugging_ON() ; #endif shell_main(arg) ; }
/* Main function of the Janus86 kernel */ void k_main() { kclear_screen (); /* Initialize memory and start paging*/ mem_init (); /* Initialize the fs modules compiled into the kernel*/ init_fs_modules (); /* Initialize the 8259 interrupt controller */ /* Init8259(); */ /* Initialize the Interrupt descriptor table*/ /* InitIDT(); */ /* Calibrate the delay loop */ /* calibrateDelayLoop(); */ /*Probe the IDE drives present in the system*/ probe_ide_drives (); /*Read the disk partitions */ read_disk_partitions (); /*Enter the shell */ shell_main (); while (1); }
int execute(int cmd) { int ret = 0; if (asyncNotificationWaiting) { asyncNotificationWaiting = false; AsyncEventPrint(); } printf("\n"); switch(cmd) { case '1': Initialize(); break; case '2': ShowBufferSize(); break; case '3': StartSmartConfig(); break; case '4': ManualConnect(); break; case '5': ManualAddProfile(); break; case '6': ListAccessPoints(); break; case '7': ShowInformation(); break; case '8': if (!isInitialized) { Initialize(); } #ifdef CONFIG_EXAMPLES_CC3000_MEM_CHECK mmprevious= mallinfo(); show_memory_usage(&mmstart,&mmprevious); #endif shell_main(0, 0); #ifdef CONFIG_EXAMPLES_CC3000_MEM_CHECK mmprevious= mallinfo(); show_memory_usage(&mmstart,&mmprevious); #endif break; case 'q': case 'Q': ret = 1; break; default: printf("**Unknown command \"%d\" **\n", cmd); break; } return ret; }
int main(int argc,char *argv[]) { shell_main(argc, argv); return 0; }
int sas_init_shell() { return shell_main(); }