这篇教程C++ BoardInit函数代码示例写得很实用,希望能帮到您。
本文整理汇总了C++中BoardInit函数的典型用法代码示例。如果您正苦于以下问题:C++ BoardInit函数的具体用法?C++ BoardInit怎么用?C++ BoardInit使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。 在下文中一共展示了BoardInit函数的25个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。 示例1: main//****************************************************************************////! Main function//!//! /param none//!//! This function//! 1. Invokes the SLHost task//! 2. Invokes the GetNTPTimeTask//!//! /return None.////****************************************************************************void main(){ long lRetVal = -1; // // Initialize Board configurations // BoardInit(); // // Enable and configure DMA // UDMAInit(); // // Pinmux for UART // PinMuxConfig(); // // Configuring UART // InitTerm(); // // Display Application Banner // DisplayBanner(APP_NAME); // // Start the SimpleLink Host // lRetVal = VStartSimpleLinkSpawnTask(SPAWN_TASK_PRIORITY); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } // // Start the GetNTPTime task // lRetVal = osi_TaskCreate(GetNTPTimeTask, (const signed char *)"Get NTP Time", OSI_STACK_SIZE, NULL, 1, NULL ); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } // // Start the task scheduler // osi_start();}
开发者ID:nqd,项目名称:cc3200,代码行数:73,
示例2: mainvoid main(void){ int16_t moyenne; BoardInit(); /* Configuration de l'ADC * horloge: oscillateur RC interne * résultat justifié à droite * temps d'acquisition: 2*Tad (délai minimum entre 2 conversions) * canal 4 * interruption desactivée * tensions référence par défaut (Vref+ = AVdd / Vref- = AVss) */ OpenADC(ADC_FOSC_RC|ADC_RIGHT_JUST|ADC_2_TAD, ADC_CH4|ADC_INT_OFF, 0); moyenne = 0; for (uint8_t i = 0; i < 16; i++) { ConvertADC(); /* démarrage conversion */ while (BusyADC()); /* attente fin conversion */ moyenne += ReadADC(); /* lecture résultat */ } moyenne /= 16; while (1);}
开发者ID:jcassette,项目名称:tim-pic18-libs,代码行数:26,
示例3: main//*****************************************************************************////! Main //!//! /param none//!//! /return None//!//*****************************************************************************void main(){ long lRetVal = -1; // // Initialize board configuration // BoardInit(); PinMuxConfig(); #ifndef NOTERM InitTerm(); #endif lRetVal = ssl(); if(lRetVal < 0) { ERR_PRINT(lRetVal); } // // power off network processor // sl_Stop(SL_STOP_TIMEOUT); LOOP_FOREVER();}
开发者ID:moyanming,项目名称:CC3200SDK_1.2.0,代码行数:35,
示例4: cmtDebug1voidCmtSdCard::InitSetup( OMAP_MMCHS_REGS *mmc ) { uint32 reg_val; cmtDebug1( 4, 1, "InitSetup SoftReset", 0 ); BoardInit( mmc ); mmc->MMCHS_SYSCONFIG |= MMC_SOFTRESET; while( (__raw_readl( &(mmc->MMCHS_SYSSTATUS) ) & RESETDONE) == 0 ); cmtDebug1( 4, 2, "...done. InitSetup AllReset", 0 ); mmc->MMCHS_SYSCTL |= SOFTRESETALL; while( (__raw_readl( &(mmc->MMCHS_SYSCTL) ) & SOFTRESETALL) != 0x0 ); cmtDebug1( 4, 3, "...done. InitSetup Clock Config", 0 ); mmc->MMCHS_HCTL = DTW_1_BITMODE | SDBP_PWROFF | SDVS_3V0; mmc->MMCHS_CAPA |= VS30_3V0SUP | VS18_1V8SUP; reg_val = mmc->MMCHS_CON & RESERVED_MASK; mmc->MMCHS_CON = CTPL_MMC_SD | reg_val | WPP_ACTIVEHIGH | CDP_ACTIVEHIGH | MIT_CTO | DW8_1_4BITMODE | MODE_FUNC | STR_BLOCK | HR_NOHOSTRESP | INIT_NOINIT | NOOPENDRAIN; ClockConfig( mmc, CLK_INITSEQ, 0 ); mmc->MMCHS_HCTL |= SDBP_PWRON; mmc->MMCHS_IE = 0x307f0033; cmtDebug1( 4, 4, "...done.", 0 ); InitStream( mmc ); }
开发者ID:hogiboygoy,项目名称:cmt-lib,代码行数:32,
示例5: mainint main() { long lRetVal = -1; val=0; BoardInit(); PinMuxConfig(); LedInit(); //create OS tasks lRetVal = osi_TaskCreate(PushButtonHandler, (signed char*) "PushButtonHandler", OSI_STACK_SIZE, NULL, 2, &g_PushButtonTask); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } lRetVal = osi_TaskCreate(MainLoop, (signed char*)"MainLoop", OSI_STACK_SIZE, NULL, 1, NULL ); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } osi_start(); for(;;) { } return 0;}
开发者ID:yuch7,项目名称:cc3200-MCU,代码行数:35,
示例6: Initstatic void Init(){ long lRetVal = -1; BoardInit(); UDMAInit(); PinMuxConfig(); InitTerm(); InitializeAppVariables(); // // Following function configure the device to default state by cleaning // the persistent settings stored in NVMEM (viz. connection profiles & // policies, power policy etc) // // Applications may choose to skip this step if the developer is sure // that the device is in its default state at start of applicaton // // Note that all profiles and persistent settings that were done on the // device will be lost // lRetVal = ConfigureSimpleLinkToDefaultState(); if (lRetVal < 0) { if (DEVICE_NOT_IN_STATION_MODE == lRetVal) UART_PRINT( "Failed to configure the device in its default state /n/r"); LOOP_FOREVER() ; } // // Asumption is that the device is configured in station mode already // and it is in its default state // lRetVal = sl_Start(0, 0, 0); if (lRetVal < 0) { UART_PRINT("Failed to start the device /n/r"); LOOP_FOREVER() ; } UART_PRINT("Connecting to AP: '%s'.../r/n", SSID_NAME); // Connecting to WLAN AP - Set with static parameters defined at common.h // After this call we will be connected and have IP address lRetVal = WlanConnect(); if (lRetVal < 0) { UART_PRINT("Connection to AP failed /n/r"); LOOP_FOREVER() ; } UART_PRINT("Connected to AP: '%s' /n/r", SSID_NAME);#ifdef NEW_ID iobeam_Reset();#endif}
开发者ID:iobeam,项目名称:iobeam-client-embedded,代码行数:60,
示例7: main//****************************************************************************//! Main function//!//! /param none//! //! /return None.////****************************************************************************void main(){ // Initialize the board BoardInit(); // Configure the pinmux settings for the peripherals exercised PinMuxConfig(); #ifndef NOTERM // Configuring UART InitTerm(); ClearTerm(); #endif // Start the TCPServer task long lRetVal = osi_TaskCreate(InfiniteLoopTask, (const signed char *)"Infinite Loop Task", OSI_STACK_SIZE, NULL, 1, NULL ); if(lRetVal < 0) { ERR_PRINT(lRetVal); while(1); } // Start the task scheduler osi_start(); TimerDeinitStop();}
开发者ID:tzhenghao,项目名称:TimerInterruptsOnCC3200,代码行数:40,
示例8: mainint main(){ /* * Preparation */ // Board Initialization BoardInit(); // Configuring UART InitTerm(); // Connect to AP // Put your SSID and password in common.h long lRetVal = ConnectToAP(); if(lRetVal < 0) { UART_PRINT("Connection to AP failed/n/r"); LOOP_FOREVER(); } UART_PRINT("Connected to AP/n/r"); if(lRetVal < 0) { LOOP_FOREVER(); } // Declare thing Thing_Struct thing; // Connect to thethingsiO server lRetVal = ConnectTo_thethingsiO(&thing.thing_client); if(lRetVal < 0) { LOOP_FOREVER(); } UART_PRINT("Thing client connected/n/r"); // In order to initialize the thing correctly you have to use one of // following two methods: // 1. If you have already activated your thing you should set the token thing.token = "YOUR TOKEN HERE"; // 2. Or if not copy the provided activation code here // and uncomment the following line // char *act_code = "YOUR ACTIVATION CODE HERE"; // and activate the thing (uncomment the following line) // char *token = thing_activate(&thing, act_code); /* Intializes random number generator */ // time_t t; // srand((unsigned) time(&t)); while(1) { char *sub = thing_subscribe(&thing); if (strlen(sub) > 0) { UART_PRINT(sub); UART_PRINT("/n/r"); } // Free memory free(sub); }}
开发者ID:theThings,项目名称:thethings.iO-TexasInstruments-library,代码行数:60,
示例9: target_initialiseint target_initialise(void){ BoardInit(); wlan_configure(); sl_Start(0, 0, 0); // Both SSID and PASSWORD must be defined externally. wlan_connect(WIFI_SSID, WIFI_PASSWORD, SL_SEC_TYPE_WPA_WPA2);}
开发者ID:BillTheBest,项目名称:sample-apps,代码行数:8,
示例10: SX1278TASK_PROCESS//##############################################################################################################void SX1278TASK_PROCESS(void const * argument){ uint32_t Last; BoardInit( ); Radio = RadioDriverInit( ); Radio->Init( ); Radio_UserInit(); Radio->StartRx( ); Last=HAL_GetTick(); while(1) { switch( Radio->Process( )) { case RF_CHANNEL_ACTIVITY_DETECTED: __NOP(); break; case RF_CHANNEL_EMPTY: __NOP();__NOP(); break; case RF_LEN_ERROR: __NOP();__NOP();__NOP(); break; case RF_IDLE: __NOP();__NOP();__NOP();__NOP(); break; case RF_BUSY: __NOP();__NOP();__NOP();__NOP();__NOP();__NOP(); break; case RF_RX_TIMEOUT: Radio_RxTimeout(); break; case RF_RX_DONE: Radio->GetRxPacket( RadioBuffer, ( uint16_t* )&RadioLength ); if( RadioLength > 0 ) { Radio_RxDone(RadioBuffer,RadioLength); } break; case RF_TX_DONE: __NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP();__NOP(); Radio->StartRx( ); break; case RF_TX_TIMEOUT: break; default: break; } osDelay(1); if(HAL_GetTick()-Last < 100) { Last = HAL_GetTick(); Radio_Misc_Per100ms(); } } }
开发者ID:nimaltd,项目名称:sx1278,代码行数:59,
示例11: BoardAllocBoard *PlayerMinMaxTestSetup() { uint8_t width = 6, height = 6; Board *b = BoardAlloc(); BoardInit(b,width,height,PlayerMinMaxTestMap); PlayerMinMaxInit(b); return b;}
开发者ID:asheidan,项目名称:AI_ass1_c,代码行数:9,
示例12: RadioStartvoid RadioStart(){ bool bTX = false; BoardInit( ); GreenLedBlink(); RedLedBlink(); Radio = RadioDriverInit(); Radio->Init(); Radio->StartRx( ); while(1) { switch(Radio->Process()) { case RF_RX_DONE: Radio->GetRxPacket( Buffer, ( uint16_t* )&BufferSize ); if( BufferSize > 0 ) { if (bDeviceState == CONFIGURED) { if (packet_sent == 1) { CDC_Send_DATA ((unsigned char*)Buffer,BufferSize); } } } GreenLedBlink(); Radio->StartRx( ); break; case RF_TX_DONE: RedLedBlink(); Radio->StartRx( ); bTX = false; break; default: if (bDeviceState == CONFIGURED) { if(bTX) break; if (Receive_length != 0) { Radio->SetTxPacket( (unsigned char*)Receive_Buffer,Receive_length ); CDC_Receive_DATA(); Receive_length = 0; bTX = true; } } break; } }}
开发者ID:2thetop,项目名称:XRange,代码行数:56,
示例13: main int main( void) { BoardInit(); while( 1) { StateFlow(); } }
开发者ID:IridescentLee,项目名称:stm32f103,代码行数:10,
示例14: main//****************************************************************************// MAIN FUNCTION//****************************************************************************int main(){ long lRetVal = -1; // // Board Initialization // BoardInit(); // // Enable and configure DMA // UDMAInit(); // // Pinmux for UART // PinMuxConfig(); // // Configuring UART // InitTerm(); // // Display Application Banner // DisplayBanner(APP_NAME); // // Start the SimpleLink Host // lRetVal = VStartSimpleLinkSpawnTask(SPAWN_TASK_PRIORITY); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } // // Start the Receiving file // lRetVal = osi_TaskCreate(cmd_dispatcher, (const signed char *)"TFTP", OSI_STACK_SIZE, NULL, 1, NULL ); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } // // Start the task scheduler // osi_start(); return 0;}
开发者ID:hangc2,项目名称:wif,代码行数:58,
示例15: main//****************************************************************************// MAIN FUNCTION//****************************************************************************void main() { // // Board Initialization // BoardInit(); // // Pinmux for UART // PinMuxConfig();#ifndef NOTERM // // Configuring UART // InitTerm(); // // Display Application Banner // DisplayBanner(APP_NAME);#endif // // Enable and configure DMA // UDMAInit(); // // Start the SimpleLink Host // VStartSimpleLinkSpawnTask(SPAWN_TASK_PRIORITY); // // Start the HttpServer Task // // osi_TaskCreate(HttpServerAppTask, "WebSocketApp", OSI_STACK_SIZE, NULL, HTTP_SERVER_APP_TASK_PRIORITY, NULL ); UART_PRINT("HttpServerApp Initialized /n/r"); // // Start the task scheduler // osi_start(); return;}
开发者ID:bigcat26,项目名称:cc3200-sdk,代码行数:57,
示例16: StartApplicationstatic voidStartApplication (void){ mainFrm = 0; pen_down = false; selected_robot = 0; MemSet (&game, sizeof (Game), '/0'); Restore (); BoardInit (); DamageBoard ();}
开发者ID:ricochet-robotics,项目名称:rr-palmpilot-c,代码行数:11,
示例17: mainint main(void){ long lRetVal = -1; // // initialize board configurations // BoardInit(); // // Pinmux GPIO for LEDs // PinMuxConfig();#ifndef NOTERM // // Configuring UART // InitTerm();#endif // // Configure LEDs // GPIO_IF_LedConfigure(LED1|LED2|LED3); GPIO_IF_LedOff(MCU_ALL_LED_IND); // // Simplelinkspawntask // lRetVal = VStartSimpleLinkSpawnTask(SPAWN_TASK_PRIORITY); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } lRetVal = osi_TaskCreate(XmppClient, (const signed char*)"XmppClient",/ OSI_STACK_SIZE, NULL, 1, NULL ); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } osi_start(); while(1) { }}
开发者ID:gale320,项目名称:cc3200,代码行数:54,
示例18: main//****************************************************************************////! Main function//!//! /param none//! //! This function //! 1. Invokes the SLHost task//! 2. Invokes the LPDSTCPServerTask//!//! /return None.////****************************************************************************void main(){ long lRetVal = -1; // // Initialize the board // BoardInit(); // // Configure the pinmux settings for the peripherals exercised // PinMuxConfig();#ifndef NOTERM // // Configuring UART // InitTerm(); ClearTerm();#endif // // Start the SimpleLink Host // lRetVal = VStartSimpleLinkSpawnTask(SPAWN_TASK_PRIORITY); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } // // Start the TCPServer task // lRetVal = osi_TaskCreate(TCPServerTask, (const signed char *)"DeepSleep TCP", OSI_STACK_SIZE, NULL, 1, NULL ); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } // // Start the task scheduler // osi_start();}
开发者ID:CaptFrank,项目名称:CC3200-Linux-SDK,代码行数:65,
示例19: main//*****************************************************************************////! Main //!//! /param none//!//! This function//! 1. Invokes the SLHost task//! 2. Invokes the MqttClient//!//! /return None//!//*****************************************************************************void main(){ long lRetVal = -1; // // Initialize the board configurations // BoardInit(); // // Pinmux for UART // PinMuxConfig(); // // Configuring UART // InitTerm(); // // Display Application Banner // DisplayBanner("MQTT_Client"); // // Start the SimpleLink Host // lRetVal = VStartSimpleLinkSpawnTask(SPAWN_TASK_PRIORITY); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } // // Start the MQTT Client task // osi_MsgQCreate(&g_PBQueue,"PBQueue",sizeof(event_msg),10); lRetVal = osi_TaskCreate(MqttClient, (const signed char *)"Mqtt Client App", OSI_STACK_SIZE, NULL, 2, NULL ); if(lRetVal < 0) { ERR_PRINT(lRetVal); LOOP_FOREVER(); } // // Start the task scheduler // osi_start();}
开发者ID:jfrancoya,项目名称:cc3200-mqtt_client,代码行数:64,
示例20: main// HACK: Should be actually Mos6502Init.main (){ BoardInit (); reactive_link ( "PHI0", 0, phi_worker ); PeekerAddItem ("PHI0"); ClocksInit (); PredecodeInit (); DispatcherInit (); reactive_assign ( "PHI0", 0 ); PeekerFlush ("state.txt");}
开发者ID:BigEd,项目名称:breaks,代码行数:16,
示例21: StateMachine/*! * This is the State Machine of the Demo Application. */void StateMachine(void){ switch (DEMO_SR) { case DEMO_BOOT: BoardInit(); ENABLE_GLOBAL_INTERRUPTS(); EZMacPRO_Init(); /* Wait until device goes to Sleep. */ WAIT_FLAG_TRUE(fEZMacPRO_StateSleepEntered); /* Clear State transition flags. */ fEZMacPRO_StateWakeUpEntered = 0; vP2P_demo_TxInit(); // Point to point demo initialisation. DEMO_SR = DEMO_TX; // Go to TX state. break; case DEMO_TX: // LFT expired, send next packet. if (fEZMacPRO_LFTimerExpired) { fEZMacPRO_LFTimerExpired = 0; // Send packet then place the radio to sleep. vP2P_demo_SendPacketGoToSleep(); DEMO_SR = DEMO_TX_WF_ACK; // Go to TX wait for acknowledgement state. } break; case DEMO_TX_WF_ACK: // Auto-acknowledgement has arrived. if (fEZMacPRO_PacketSent) { fEZMacPRO_PacketSent = 0; LED1_TOGGLE(); DEMO_SR = DEMO_TX; // Go to TX state. } // Auto-acknowledgement has not arrived. if (fEZMacPRO_AckTimeout) { fEZMacPRO_AckTimeout = 0; DEMO_SR = DEMO_TX; // Go to TX state. } break; default: break; }}
开发者ID:XYfighting,项目名称:EzMacPro32,代码行数:51,
示例22: platform_initvoid platform_init(void){ long lRetVal; // // Board Initialization // BoardInit(); // // configure the GPIO pins for LEDs,UART // PinMuxConfig(); // // Configure the UART //#ifndef NOTERM InitTerm(); ClearTerm();#endif //NOTERM my_logger_init(logger_writer); // // Start the SimpleLink Host // lRetVal = VStartSimpleLinkSpawnTask(SPAWN_TASK_PRIORITY); ASSERT(lRetVal >= 0); // // Start the IoTKit runloop task // lRetVal = osi_TaskCreate(application_main, (const signed char*)"appmain", MAIN_TASK_STACK_SIZE, NULL, MAIN_TASK_PRIORITY, NULL); ASSERT(lRetVal >= 0); UDMAInit(); _platform_spi_init(); // // Start the task scheduler // osi_start();}
开发者ID:cylankj,项目名称:IotKit-Device,代码行数:47,
示例23: main//*****************************************************************************// MAIN FUNCTION//*****************************************************************************void main() { // // Board Initialization // BoardInit(); // // configure the GPIO pins for LEDs,UART // PinMuxConfig(); // // Configure the UART //#ifndef NOTERM InitTerm();#endif //NOTERM // // Display Application Banner // DisplayBanner(APPLICATION_NAME); // // Configure all 3 LEDs // GPIO_IF_LedConfigure(LED1 | LED2 | LED3); // switch off all LEDs GPIO_IF_LedOff(MCU_ALL_LED_IND); FileTest(); /*// // Start the SimpleLink Host // VStartSimpleLinkSpawnTask(SPAWN_TASK_PRIORITY); // // Start the WlanStationMode task // osi_TaskCreate( WlanStationMode, (const signed char*)"Wlan Station Task", OSI_STACK_SIZE, NULL, 1, NULL ); // // Start the task scheduler // osi_start();*/}
开发者ID:Balu1991,项目名称:Wifly_Light,代码行数:50,
示例24: _startvoid _start() { BoardEarlyInit(); cpu_early_init(); BoardConsoleInit(); BoardConsolePuts("/n/n================/nuC-sdk - booting/n================/n"); libc_init(); BoardInit(); cpu_init(); BoardLateInit(); cpu_late_init(); exit(main(0, NULL, NULL));}
开发者ID:dtbinh,项目名称:M2,代码行数:17,
示例25: mainint main(void) { SystemInit(); GLCD_Init(); GLCD_Clear(Black); GLCD_SetTextColor(Red); GLCD_SetBackColor(Black); __enable_irq(); GLCD_DisplayString(1, 1, 1, "Status: "); GLCD_DisplayString(1, 9, 1, "START"); GLCD_DisplayString(4, 5, 1, "TIMER"); BoardInit(); hwInterrupt(min_to_run * ms_in_min); GLCD_DisplayString(1, 9, 1, "END "); return 0;}
开发者ID:simar7,项目名称:real-time-embedded-systems,代码行数:17,
注:本文中的BoardInit函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 C++ Board_Init函数代码示例 C++ BlueSystemMessage函数代码示例 |