这篇教程C++ BIOS_start函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中BIOS_start函数的典型用法代码示例。如果您正苦于以下问题:C++ BIOS_start函数的具体用法?C++ BIOS_start怎么用?C++ BIOS_start使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了BIOS_start函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: main/* ARGSUSED */int main(Int argc, Char * argv[]){ IRES_Status status; Int size = 0; FCSettings_init(); Diags_setMask(FCSETTINGS_MODNAME"+EX1234567"); Diags_setMask("xdc.runtime.Main+EX1234567"); Diags_setMask("ti.sdo.fc.%+EX1234567"); Log_print0(Diags_ENTRY, "[+E] _main> Enter"); status = RMAN_init(); if (IRES_OK != status) { Log_print1(Diags_USER7, "[+7] main> RMAN_init() failed [%d]", (IArg)status); System_abort("RMAN_init() failed, aborting.../n"); } Log_print0(Diags_EXIT, "[+X] main> Exit"); BIOS_start(); return(0);}
开发者ID:skitlab,项目名称:ti-framework_components,代码行数:26,
示例2: main/* * ======== main ======== */int main(){ /* Register Application callback to trap asserts raised in the Stack */ RegisterAssertCback(AssertHandler); PIN_init(BoardGpioInitTable);#ifndef POWER_SAVING /* Set constraints for Standby, powerdown and idle mode */ Power_setConstraint(Power_SB_DISALLOW); Power_setConstraint(Power_IDLE_PD_DISALLOW);#endif //POWER_SAVING /* Initialize ICall module */ ICall_init(); /* Start tasks of external images - Priority 5 */ ICall_createRemoteTasks(); /* Kick off profile - Priority 3 */ GAPCentralRole_createTask(); /* Kick off application - Priority 1 */ security_examples_central_createTask(); /* enable interrupts and start SYS/BIOS */ BIOS_start(); return 0;}
开发者ID:49577,项目名称:ble_examples,代码行数:33,
示例3: mainInt main(Int argc, Char* argv[]){ Error_Block eb; Task_Params taskParams; Registry_Result result; Log_print0(Diags_ENTRY, "--> main:"); /* must initialize the error block before using it */ Error_init(&eb); /* create main thread (interrupts not enabled in main on BIOS) */ Task_Params_init(&taskParams); taskParams.instance->name = "smain"; taskParams.stackSize = 0x1000; Task_create(smain, &taskParams, &eb); if (Error_check(&eb)) { System_abort("main: failed to create application startup thread"); } /* register with xdc.runtime to get a diags mask */ result = Registry_addModule(&Registry_CURDESC, MODULE_NAME); Assert_isTrue(result == Registry_SUCCESS, (Assert_Id)NULL); /* start scheduler, this never returns */ BIOS_start(); /* should never get here */ Log_print0(Diags_EXIT, "<-- main:"); return (0);}
开发者ID:liyaoshi,项目名称:ipcdev,代码行数:32,
示例4: mainInt main (void){ Types_FreqHz timer_freq; Types_Timestamp64 now; uint64_t start_time, current_time; double elapsed_duration_seconds; TimestampProvider_getFreq (&timer_freq); printf ("Starting timer test/n"); TimestampProvider_get64 (&now); start_time = ((uint64_t) now.hi << 32) + now.lo; do { TimestampProvider_get64 (&now); current_time = ((uint64_t) now.hi << 32) + now.lo; elapsed_duration_seconds = (double) (current_time - start_time) / timer_freq.lo; } while (elapsed_duration_seconds < 10); printf ("Timer test complete/n"); BIOS_start(); /* does not return */ return(0);}
开发者ID:Chester-Gillon,项目名称:TMS320C6678_benchmarks,代码行数:26,
示例5: mainInt main(Int argc, Char* argv[]) { /* // Because MSMC memory cannot be non-cacheable, a new entry is added to // the memory map as follows: // name origin length // SHARED_NO_CACHE 80000000 80000000 // Cache is disabled for this new memory range // Then a new section is created for this memory range (cf .cfg). Memory // translation is then used to make the region beginning fall into the // MSMCSRAM. The rest naturally falls into DDR3. // "translate" 2MB (0x14) from 0x80000000 to 0x00c200000 using the MPAX number 3 set_MPAX(3, 0x80000, 0x00c200, 0x14, CACHEABLE); */ // Disable caching from 0x80000000 to 0xFFFFFFFF if(!CACHEABLE){ int index; for (index = 0x80; index <= 0xFF; index++) { CACHE_disableCaching(index); } } BIOS_start(); return (0);}
开发者ID:preesm,项目名称:preesm-apps,代码行数:28,
示例6: main/* * ======== main ======== */int main(void){ Task_Params taskParams; /* Call board init functions */ Board_initGeneral(); Board_initGPIO(); Board_initSDSPI(); /* Construct file copy Task thread */ Task_Params_init(&taskParams); taskParams.stackSize = TASKSTACKSIZE; taskParams.stack = &task0Stack; Task_construct(&task0Struct, (Task_FuncPtr)taskFxn, &taskParams, NULL); /* Turn on user LED */ GPIO_write(Board_LED0, Board_LED_ON); System_printf("Starting the FatSD Raw example/n"); /* Start BIOS */ BIOS_start(); return (0);}
开发者ID:tomaszmat,项目名称:simulate,代码行数:28,
示例7: main/* * ======== main ======== */Void main(){ Swi_Params swiParams; Task_Params taskParams; Clock_Params clkParams; Swi_Params_init(&swiParams); swiParams.arg0 = 1; swiParams.arg1 = 0; swiParams.priority = 2; swiParams.trigger = 0; swi0 = Swi_create(swi0Fxn, &swiParams, NULL); swiParams.arg0 = 2; swiParams.arg1 = 0; swiParams.priority = 1; swiParams.trigger = 3; swi1 = Swi_create(swi1Fxn, &swiParams, NULL); Task_Params_init(&taskParams); taskParams.priority = 1; Task_create (tsk0Fxn, &taskParams, NULL); Clock_Params_init(&clkParams); clkParams.startFlag = TRUE; Clock_create(clk0Fxn, 2, &clkParams, NULL); sem0 = Semaphore_create(0, NULL, NULL); BIOS_start();}
开发者ID:andreimironenko,项目名称:bios,代码行数:36,
示例8: mainInt main(Int argc, Char* argv[]){ Error_Block eb; Task_Params taskParams; Log_print3(Diags_ENTRY, "--> %s: (argc: %d, argv: 0x%x)", (IArg)FXNN, (IArg)argc, (IArg)argv); /* must initialize the error block before using it */ Error_init(&eb); /* initialize ipc layer */ Ipc_start(); /* create main thread (interrupts not enabled in main on BIOS) */ Task_Params_init(&taskParams); taskParams.instance->name = "AppMain_main__P"; taskParams.arg0 = (UArg)argc; taskParams.arg1 = (UArg)argv; taskParams.stackSize = 0x4000; Task_create(AppMain_main__P, &taskParams, &eb); if (Error_check(&eb)) { System_abort("main() failed to create application startup thread"); } /* start scheduler, this never returns */ BIOS_start(); /* should never get here */ Log_print1(Diags_EXIT, "<-- %s: should never get here", (IArg)FXNN); return(0);}
开发者ID:andreimironenko,项目名称:framework_components,代码行数:34,
示例9: main/* * ======== main ======== * Synchronizes all processors (in Ipc_start) and calls BIOS_start */Int main(Int argc, Char* argv[]){ Int status; nextProcId = (MultiProc_self() + 1) % MultiProc_getNumProcessors(); System_printf("main: MultiProc id = %d/n", MultiProc_self()); System_printf("main: MultiProc name = %s/n", MultiProc_getName(MultiProc_self())); /* Generate queue names based on own proc ID and total number of procs */ System_sprintf(localQueueName, "%s", MultiProc_getName(MultiProc_self())); System_sprintf(nextQueueName, "%s", MultiProc_getName(nextProcId)); /* * Ipc_start() calls Ipc_attach() to synchronize all remote processors * because 'Ipc.procSync' is set to 'Ipc.ProcSync_ALL' in *.cfg */ status = Ipc_start(); if (status < 0) { System_abort("Ipc_start failed/n"); } BIOS_start(); return (0);}
开发者ID:zaporozhets,项目名称:ti_ezsdk_tools,代码行数:31,
示例10: mainint main() { // initialize the board (void) Board_initGeneral(120 * 1000 * 1000); // initialize i2c initializeI2C(); // setup i2c task, who does the work (void) setup_I2C_Task(); // initialize uart initializeUART(); // setup uart task, printing the output (void) setup_UART_Task(); // setup the events which are used in combination with the queues (void) setup_Events(); // initialize interrupts initializeInterrupts(); // setup the interrupts - both for the ALTITUDE CLICK module and the USR_SW setup_Interrupts(); System_printf("Start BIOS/n"); System_flush(); /* Start BIOS */ BIOS_start();}
开发者ID:pszabo1,项目名称:altitude-click-tiva-board,代码行数:32,
示例11: mainint main(void){ Task_Params taskParams; /* Call board init functions */ Board_initGeneral(); memoryInit(spiHandle, 6250); // Board_initWatchdog(); /* Construct heartBeat Task thread */ Task_Params_init(&taskParams); taskParams.arg0 = 1000000 / Clock_tickPeriod; taskParams.stackSize = TASKSTACKSIZE; taskParams.stack = &task0Stack; Task_construct(&task0Struct, (Task_FuncPtr)heartBeatFxn, &taskParams, NULL); /* Open LED pins */ ledPinHandle = PIN_open(&ledPinState, ledPinTable); if(!ledPinHandle) { System_abort("Error initializing board LED pins/n"); } //IOCPortConfigureSet(PIN_SPI_MOSI, PORTID, PIN-CONFIG); // oklart om och hur denna funkar. //IOCPortConfigureSet(DIOn, PORTID, PIN-CONFIG); //PIN_setOutputValue(ledPinHandle, Board_LED1, 1); /* Start BIOS */ BIOS_start(); return (0);}
开发者ID:ponjoh90,项目名称:exjobb_pontus_fredrik,代码行数:31,
示例12: main/************************************************************************* * main() * Entry point for the application. ************************************************************************/int main(){ /* Start the BIOS 6 Scheduler - it will kick off our main thread ledPlayTask() */ platform_write("Start BIOS 6/n"); //Timer_start(timer1); BIOS_start();}
开发者ID:pi19404,项目名称:Acoustics,代码行数:11,
示例13: main/* * ======== main ======== */int main(){ PIN_init(BoardGpioInitTable); //enable iCache prefetching VIMSConfigure(VIMS_BASE, TRUE, TRUE); // Enable cache VIMSModeSet(VIMS_BASE, VIMS_MODE_ENABLED);#ifndef POWER_SAVING /* Set constraints for Standby, powerdown and idle mode */ Power_setConstraint (Power_SB_DISALLOW); Power_setConstraint (Power_IDLE_PD_DISALLOW);#endif //POWER_SAVING /* Initialize ICall module */ ICall_init(); /* Start tasks of external images - Priority 5 */ ICall_createRemoteTasks(); /* Kick off profile - Priority 3 */ GAPRole_createTask(); /* Kick off application - Priority 1 */ ProximityTag_createTask(); /* enable interrupts and start SYS/BIOS */ BIOS_start(); return 0;}
开发者ID:victor-zheng,项目名称:BLE,代码行数:36,
示例14: main/* * ======== main ======== */Int main(Int argc, Char* argv[]){ selfId = MultiProc_self(); System_printf("Core (/"%s/") starting/n", MultiProc_getName(selfId)); if (numCores == 0) { numCores = MultiProc_getNumProcessors(); } attachAll(numCores); System_sprintf(localQueueName, "CORE%d", selfId); System_sprintf(nextQueueName, "CORE%d", ((selfId + 1) % numCores)); System_sprintf(prevQueueName, "CORE%d", (selfId - 1 + numCores) % numCores); /* Create a message queue. */ messageQ = MessageQ_create(localQueueName, NULL); if (messageQ == NULL) { System_abort("MessageQ_create failed/n" ); } BIOS_start(); return (0);}
开发者ID:andreimironenko,项目名称:ipc,代码行数:32,
示例15: osStartKernelvoid osStartKernel(void){ //The scheduler is now running running = TRUE; //Start the scheduler BIOS_start();}
开发者ID:frankzzcn,项目名称:M2_SE_RTOS_Project,代码行数:7,
示例16: main/* * ======== main ======== * Synchronizes all processors. * Creates a HeapBufMP and registers it with MessageQ. */Int main(Int argc, Char* argv[]){ Int status; HeapBufMP_Handle heapHandle; HeapBufMP_Params heapBufParams; /* * Ipc_start() calls Ipc_attach() to synchronize all remote processors * because 'Ipc.procSync' is set to 'Ipc.ProcSync_ALL' in *.cfg */ status = Ipc_start(); if (status < 0) { System_abort("Ipc_start failed/n"); } /* * Create the heap that will be used to allocate messages. */ HeapBufMP_Params_init(&heapBufParams); heapBufParams.regionId = 0; heapBufParams.name = HEAP_NAME; heapBufParams.align = HEAP_ALIGN; heapBufParams.numBlocks = HEAP_NUMMSGS; heapBufParams.blockSize = HEAP_MSGSIZE; heapHandle = HeapBufMP_create(&heapBufParams); if (heapHandle == NULL) { System_abort("HeapBufMP_create failed/n" ); } /* Register this heap with MessageQ */ MessageQ_registerHeap((IHeap_Handle)heapHandle, HEAPID); BIOS_start(); return (0);}
开发者ID:skitlab,项目名称:ti-ipc,代码行数:40,
示例17: main/* * ======== main ======== */int main(void){ /* Call board init functions */ Board_initGeneral(); Board_initGPIO(); // Board_initDMA(); // Board_initI2C(); // Board_initSPI(); // Board_initUART(); // Board_initUSB(Board_USBDEVICE); // Board_initWatchdog(); // Board_initWiFi(); Robot_PWM_init(); /* Turn on user LED */ GPIO_write(Board_LED0, Board_LED_ON); System_printf("Starting the example/nSystem provider is set to SysMin. " "Halt the target to view any SysMin contents in ROV./n"); /* SysMin will only print to the console when you call flush or exit */ System_flush(); /* Start BIOS */ BIOS_start(); return (0);}
开发者ID:erniep,项目名称:Potatoes,代码行数:31,
示例18: main/* * ======== main ======== * Create a task. * Synchronize all processors. * Register an event with Notify. */Int main(Int argc, Char* argv[]){ selfId = MultiProc_self(); System_printf("main: MultiProc id = %d/n", selfId); System_printf("main: MultiProc name = %s/n", MultiProc_getName(selfId)); if (numCores == 0) { numCores = MultiProc_getNumProcessors(); } /* * Determine which processors Notify will communicate with based on the * local MultiProc id. */ srcProc = ((selfId - 1 + numCores) % numCores); dstProc = ((selfId + 1) % numCores); attachAll(numCores); BIOS_start(); return (0);}
开发者ID:andreimironenko,项目名称:ipc,代码行数:32,
示例19: main/* * ======== main ======== */Int main(){ Log_info0("bigTime started."); BIOS_start(); /* does not return */ return(0);}
开发者ID:DemonTu,项目名称:ALL_SmartBatterySwitch_CC2640,代码行数:10,
示例20: main/* * ======== main ======== */int main(){ /* initialize all device/board specific peripherals */ Board_init(); Task_Params taskParams; System_printf("Startup/n"); System_flush(); /* initialize taskParams to the defaults */ Task_Params_init(&taskParams); taskParams.priority = Task_numPriorities - 1; taskParams.stackSize = 0x800; /* Set the task name */ taskParams.instance->name = (xdc_String)"hello"; /* Create the task */ Task_create(hello_task, &taskParams, NULL); /* does not return */ BIOS_start(); return (0); /* should never get here, but just in case ... */}
开发者ID:energia,项目名称:emt,代码行数:30,
示例21: main/* * ======== main ======== */int main(void){ /* Call board init functions */ Board_initGeneral(); Board_initGPIO(); Board_initUART(); /* Construct BIOS objects */ Task_Params taskParams; Task_Params_init(&taskParams); taskParams.stackSize = TASKSTACKSIZE; taskParams.stack = &task0Stack; taskParams.instance->name = "echo"; Task_construct(&task0Struct, (Task_FuncPtr)echoFxn, &taskParams, NULL); /* Turn on user LED */ GPIO_write(Board_LED0, Board_LED_ON); /* Start BIOS */ BIOS_start(); return (0);}
开发者ID:mgolub2,项目名称:Breadcrumb,代码行数:28,
示例22: main/* * ======== main ======== */Void main(Int argc, Char *argv[]){ Int status; do { /* init IPC */ status = Ipc_start(); } while (status < 0); /* init Codec Engine */ CERuntime_init(); Log_print0(Diags_USER4, "[+4] main> Welcome to DSP server's main()."); /* Configure and register BUFRES resource with RMAN */ config.iresConfig.size = sizeof(BUFRES_Params); config.iresConfig.allocFxn = DSKT2_allocPersistent; config.iresConfig.freeFxn = DSKT2_freePersistent; config.base = Memory_alloc(BUFSIZE, NULL); config.length = BUFSIZE; RMAN_register(&BUFRES_MGRFXNS, (IRESMAN_Params *)&config); BIOS_start();}
开发者ID:andreimironenko,项目名称:codec-engine,代码行数:30,
示例23: main/* * ======== main ======== */Int main(Int argc, Char* argv[]){ Error_Block eb; Task_Params taskParams; Log_print0(Diags_ENTRY, "--> main:"); /* must initialize the error block before using it */ Error_init(&eb); /* create main thread (interrupts not enabled in main on BIOS) */ Task_Params_init(&taskParams); taskParams.instance->name = "smain"; taskParams.stackSize = 0x1000; Task_create(smain, &taskParams, &eb); if (Error_check(&eb)) { System_abort("main: failed to create application startup thread"); } /* start scheduler, this never returns */ BIOS_start(); /* should never get here */ Log_print0(Diags_EXIT, "<-- main:"); return (0);}
开发者ID:liyaoshi,项目名称:ipcdev,代码行数:30,
示例24: main/* * ======== main ======== */Int main(Int argc, Char* argv[]){ Int status; Task_Params taskParams; /* initialize ipc layer */ do { status = Ipc_start(); } while (status < 0); /* create main thread (interrupts not enabled in main on BIOS) */ Task_Params_init(&taskParams); taskParams.instance->name = "smain"; taskParams.arg0 = (UArg)argc; taskParams.arg1 = (UArg)argv; taskParams.stackSize = 0x4000; Task_create(smain, &taskParams, NULL); /* start scheduler, this never returns */ BIOS_start(); /* should never get here */ return(0);}
开发者ID:andreimironenko,项目名称:framework_components,代码行数:28,
示例25: main/* * ======== main ======== * Synchronizes all processors (in Ipc_start), calls BIOS_start, and registers * for an incoming event */Int main(Int argc, Char* argv[]){ Int status; UInt numProcs = MultiProc_getNumProcessors(); /* * Determine which processors Notify will communicate with based on the * local MultiProc id. Also, create a processor-specific Task. */ srcProc = ((MultiProc_self() - 1 + numProcs) % numProcs); dstProc = ((MultiProc_self() + 1) % numProcs); System_printf("main: MultiProc id = %d/n", MultiProc_self()); System_printf("main: MultiProc name = %s/n", MultiProc_getName(MultiProc_self())); /* * Register call back with Notify. It will be called when the processor * with id = srcProc sends event number EVENTID to this processor. */ status = Notify_registerEvent(srcProc, INTERRUPT_LINE, EVENTID, (Notify_FnNotifyCbck)cbFxn, NULL); if (status < 0) { System_abort("Notify_registerEvent failed/n"); } BIOS_start(); return (0);}
开发者ID:skitlab,项目名称:ti-ipc,代码行数:35,
示例26: main/* * ======== main ======== */int main(void){ PIN_Handle ledPinHandle; /* Call board init functions */ Board_initGeneral(); Board_initUART(); /* Open LED pins */ ledPinHandle = PIN_open(&ledPinState, ledPinTable); if(!ledPinHandle) { System_abort("Error initializing board LED pins/n"); } PIN_setOutputValue(ledPinHandle, Board_LED1, 1); /* This example has logging and many other debug capabilities enabled */ System_printf("This example does not attempt to minimize code or data " "footprint/n"); System_flush(); System_printf("Starting the UART Echo example/nSystem provider is set to " "SysMin. Halt the target to view any SysMin contents in " "ROV./n"); /* SysMin will only print to the console when you call flush or exit */ System_flush(); /* Start BIOS */ BIOS_start(); return (0);}
开发者ID:DemonTu,项目名称:ALL_SmartBatterySwitch_CC2640,代码行数:35,
示例27: main/* * ======== main ======== */int main(void){ Task_Params taskParams; /* Call board init functions */ Board_initGeneral(); Board_initGPIO(); // Board_initI2C(); // Board_initSDSPI(); // Board_initSPI(); // Board_initUART(); // Board_initUSB(Board_USBDEVICE); // Board_initWatchdog(); // Board_initWiFi(); /* Construct heartBeat Task thread */ Task_Params_init(&taskParams); taskParams.arg0 = 1000; taskParams.stackSize = TASKSTACKSIZE; taskParams.stack = &task0Stack; Task_construct(&task0Struct, (Task_FuncPtr)heartBeatFxn, &taskParams, NULL); /* Turn on user LED */ GPIO_write(Board_LED0, Board_LED_ON); System_printf("Starting the example/nSystem provider is set to SysMin. " "Halt the target to view any SysMin contents in ROV./n"); /* SysMin will only print to the console when you call flush or exit */ System_flush(); /* Start BIOS */ BIOS_start(); return (0);}
开发者ID:tomaszmat,项目名称:simulate,代码行数:38,
示例28: main/* * ======== main ======== */int main(){ PIN_init(BoardGpioInitTable);#ifndef POWER_SAVING /* Set constraints for Standby, powerdown and idle mode */ Power_setConstraint(Power_SB_DISALLOW); Power_setConstraint(Power_IDLE_PD_DISALLOW);#endif // POWER_SAVING /* Initialize ICall module */ ICall_init(); /* Start tasks of external images - Priority 5 */ ICall_createRemoteTasks(); /* Kick off profile - Priority 3 */ GAPRole_createTask(); /* Kick off application - Priority 1 */ SimpleBLEBroadcaster_createTask(); BIOS_start(); /* enable interrupts and start SYS/BIOS */ return 0;}
开发者ID:victor-zheng,项目名称:BLE,代码行数:29,
示例29: main/* * ======== main ======== */Int main(Int argc, Char* argv[]){ Error_Block eb; Task_Params taskParams; Log_print0(Diags_INFO, LOGSTR(1)); /* must initialize the error block before using it */ Error_init(&eb); /* create main thread (interrupts not enabled in main on BIOS) */ Task_Params_init(&taskParams); taskParams.instance->name = "smain"; taskParams.arg0 = (UArg)argc; taskParams.arg1 = (UArg)argv; taskParams.stackSize = 0x700; Task_create(smain, &taskParams, &eb); if (Error_check(&eb)) { System_abort((String)(LOGSTR(13))); } /* start scheduler, this never returns */ BIOS_start(); /* should never get here */ return(0);}
开发者ID:skitlab,项目名称:ti-framework_components,代码行数:32,
示例30: main/* * ======== main ======== */int main(void) { Task_Handle taskHandle; Task_Params taskParams; Error_Block eb;#ifdef TIVAWARE /* * This is a work-around for EMAC initialization issues found on * the TM4C129 devices. The bug number is: * SDOCM00107378: NDK examples for EK-TM4C1294XL do not work * * The following disables the flash pre-fetch. It is enable within the * EMAC driver (in the EMACSnow_NIMUInit() function). */ UInt32 ui32FlashConf; ui32FlashConf = HWREG(0x400FDFC8); ui32FlashConf &= ~(0x00020000); ui32FlashConf |= 0x00010000; HWREG(0x400FDFC8) = ui32FlashConf;#endif /* Call board init functions */ Board_initGeneral(); Board_initGPIO(); Board_initEMAC(); /* * CyaSSL library needs time() for validating certificates. * USER STEP: Set up the current time in seconds below. */ MYTIME_init(); MYTIME_settime(1408053541); System_printf("Starting the TCP Echo example/nSystem provider is set to " "SysMin. Halt the target to view any SysMin contents in" " ROV./n"); /* SysMin will only print to the console when you call flush or exit */ System_flush(); /* * Create the Task that farms out incoming TCP connections. * arg0 will be the port that this task listens to. */ Task_Params_init(&taskParams); Error_init(&eb); taskParams.stackSize = 32768; taskParams.priority = 1; taskParams.arg0 = TCPPORT; taskHandle = Task_create((Task_FuncPtr) tcpHandler, &taskParams, &eb); if (taskHandle == NULL) { System_printf("main: Failed to create tcpHandler Task/n"); } /* Start BIOS */ BIOS_start(); return (0);}
开发者ID:hongxiong,项目名称:wolfssl-examples,代码行数:62,
注:本文中的BIOS_start函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ BIO_callback_ctrl函数代码示例 C++ BINT函数代码示例 |