本文整理汇总了C++中osThreadDef函数的典型用法代码示例。如果您正苦于以下问题:C++ osThreadDef函数的具体用法?C++ osThreadDef怎么用?C++ osThreadDef使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了osThreadDef函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: HID_MenuInit
/**
* @brief Demo state machine.
* @param None
* @retval None
*/
void HID_MenuInit(void)
{
/* Create Menu Semaphore */
osSemaphoreDef(osSem);
MenuEvent = osSemaphoreCreate(osSemaphore(osSem), 1);
/* Force menu to show Item 0 by default */
osSemaphoreRelease(MenuEvent);
/* Menu task */
osThreadDef(Menu_Thread, HID_MenuThread, osPriorityHigh, 0, 8 * configMINIMAL_STACK_SIZE);
osThreadCreate(osThread(Menu_Thread), NULL);
BSP_LCD_SetTextColor(LCD_COLOR_GREEN);
BSP_LCD_DisplayStringAtLine(15, (uint8_t *)"Use [Joystick Left/Right] to scroll up/down");
BSP_LCD_DisplayStringAtLine(16, (uint8_t *)"Use [Joystick Up/Down] to scroll HID menu");
}
开发者ID:nguyenvuhung,项目名称:STM32Cube_FW_F4,代码行数:23,代码来源:menu.c
示例2: AUDIOPLAYER_Init
/**
* @brief Initializes audio
* @param None.
* @retval Audio state.
*/
AUDIOPLAYER_ErrorTypdef AUDIOPLAYER_Init(void)
{
/* Initialize internal audio structure */
haudio.state = AUDIOPLAYER_STOP;
haudio.mute = MUTE_OFF;
haudio.volume = AUDIO_DEFAULT_VOLUME;
/* Create Audio Queue */
osMessageQDef(AUDIO_Queue, 1, uint16_t);
AudioEvent = osMessageCreate (osMessageQ(AUDIO_Queue), NULL);
/* Create Audio task */
osThreadDef(osAudio_Thread, Audio_Thread, osPriorityHigh, 0, 4 * configMINIMAL_STACK_SIZE);
AudioThreadId = osThreadCreate (osThread(osAudio_Thread), NULL);
BSP_AUDIO_OUT_SetAudioFrameSlot(CODEC_AUDIOFRAME_SLOT_02);
return AUDIOPLAYER_ERROR_NONE;
}
开发者ID:Lembed,项目名称:STM32CubeF4-mirrors,代码行数:23,代码来源:audioplayer_app.c
示例3: init_transmitter
/**
* @brief Function that initializes the transmitter.
* @param *transmitter: Pointer to a Transmitter structure.
* @param *tid_thread_transmitter: Pointer to the pushbutton thread control block.
* @retval None
*/
void init_transmitter(struct Transmitter *transmitter, osThreadId **tid_thread_transmitter) {
transmitter->state = 0;
transmitter->buffer_space = 0;
uint32_t i;
for (i=0; i<sizeof(transmitter->data)/sizeof(transmitter->data[0]); i++) {
transmitter->data[i] = 0;
}
CC2500_Init();
CC2500_config_transmitter();
goToTX(&(transmitter->state), &(transmitter->buffer_space));
osThreadDef(transmitterThread, osPriorityNormal, 1, 0);
transmitter->threadID = osThreadCreate(osThread(transmitterThread), transmitter);
osMutexDef(transmitterMutex);
transmitter->mutexID=osMutexCreate(osMutex(transmitterMutex));
*tid_thread_transmitter = &(transmitter->threadID);
}
开发者ID:jmweeks,项目名称:SuperAwesomeFinalTransmitter,代码行数:27,代码来源:project_transmitter.c
示例4: USBH_Init
/**
* @brief HCD_Init
* Initialize the HOST Core.
* @param phost: Host Handle
* @param pUsrFunc: User Callback
* @retval USBH Status
*/
USBH_StatusTypeDef USBH_Init(USBH_HandleTypeDef *phost, void (*pUsrFunc)(USBH_HandleTypeDef *phost, uint8_t ), uint8_t id)
{
/* Check whether the USB Host handle is valid */
if(phost == NULL)
{
USBH_ErrLog("Invalid Host handle");
return USBH_FAIL;
}
/* Set DRiver ID */
phost->id = id;
/* Unlink class*/
phost->pActiveClass = NULL;
phost->ClassNumber = 0;
/* Restore default states and prepare EP0 */
DeInitStateMachine(phost);
/* Assign User process */
if(pUsrFunc != NULL)
{
phost->pUser = pUsrFunc;
}
#if (USBH_USE_OS == 1)
/* Create USB Host Queue */
osMessageQDef(USBH_Queue, 10, uint16_t);
phost->os_event = osMessageCreate (osMessageQ(USBH_Queue), NULL);
/*Create USB Host Task */
osThreadDef(USBH_Thread, USBH_Process_OS, USBH_PROCESS_PRIO, 0, 8 * configMINIMAL_STACK_SIZE);
phost->thread = osThreadCreate (osThread(USBH_Thread), phost);
#endif
/* Initialize low level driver */
USBH_LL_Init(phost);
return USBH_OK;
}
开发者ID:19emtuck,项目名称:micropython,代码行数:47,代码来源:usbh_core.c
示例5: main
/**
* @brief Main program.
* @param None
* @retval None
*/
int main(void)
{
/* STM32F3xx HAL library initialization:
- Configure the Flash prefetch
- Systick timer is configured by default as source of time base, but user
can eventually implement his proper time base source (a general purpose
timer for example or other time source), keeping in mind that Time base
duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and
handled in milliseconds basis.
- Set NVIC Group Priority to 4
- Low Level Initialization
*/
HAL_Init();
/* Initialize LEDs */
BSP_LED_Init(LED1);
BSP_LED_Init(LED3);
/* Configure the system clock to 72 MHz */
SystemClock_Config();
/* Initialize buttons */
BSP_PB_Init(BUTTON_KEY, BUTTON_MODE_EXTI);
/* Define used semaphore */
osSemaphoreDef(SEM);
/* Create the semaphore used by the two threads */
osSemaphore = osSemaphoreCreate(osSemaphore(SEM) , 1);
/* Create the Thread that toggle LED1 */
osThreadDef(SEM_Thread, SemaphoreTest, osPriorityNormal, 0, semtstSTACK_SIZE);
osThreadCreate(osThread(SEM_Thread), (void *) osSemaphore);
/* Start scheduler */
osKernelStart(NULL, NULL);
/* We should never get here as control is now taken by the scheduler */
for (;;);
}
开发者ID:eleciawhite,项目名称:STM32Cube,代码行数:45,代码来源:main.c
示例6: k_StorageInit
/**
* @brief Storage drives initialization
* @param None
* @retval None
*/
void k_StorageInit(void)
{
/* Link the USB Host disk I/O driver */
FATFS_LinkDriver(&USBH_Driver, USBDISK_Drive);
/* Init Host Library */
USBH_Init(&hUSB_Host, USBH_UserProcess, 0);
/* Create USB background task */
osThreadDef(STORAGE_Thread, StorageThread, osPriorityLow, 0, 64);
osThreadCreate (osThread(STORAGE_Thread), NULL);
/* Create Storage Message Queue */
osMessageQDef(osqueue, 10, uint16_t);
StorageEvent = osMessageCreate (osMessageQ(osqueue), NULL);
/* Add Supported Class */
USBH_RegisterClass(&hUSB_Host, USBH_MSC_CLASS);
/* Start Host Process */
USBH_Start(&hUSB_Host);
}
开发者ID:acrepina,项目名称:STM32F7_serverWEB,代码行数:27,代码来源:k_storage.c
示例7: GUI_VNC_X_StartServer
/**
* @brief starts VNC server thread
* @param LayerIndex: LCD layer index
* @param ServerIndex: Server index
* @retval server started or not
*/
int GUI_VNC_X_StartServer(int LayerIndex, int ServerIndex) {
/* Init VNC context and attach to layer (so context is updated if the display-layer-contents change */
GUI_VNC_AttachToLayer(&_Context, LayerIndex);
_Context.ServerIndex = ServerIndex;
_Context.LayerIndex = LayerIndex;
/* Create task for VNC Server */
osThreadDef(VNC_Server, _ServerThread, _VNCServer_PRIO, 0, _VNCServer_Stack);
_VNCServer_TCB = osThreadCreate (osThread(VNC_Server), NULL);
if (_VNCServer_TCB == 0)
{
/* K.O., server initialization failed */
return 0;
}
else
{
/* O.k., server has been started */
return 1;
}
}
开发者ID:EarnestHein89,项目名称:STM32Cube_FW_F4,代码行数:28,代码来源:vncserver_app.c
示例8: main
/**
* @brief Main program
* @param None
* @retval None
*/
int main(void)
{
/* STM32F469xx HAL library initialization */
HAL_Init();
/* Configure the System clock to have a frequency of 180 MHz */
SystemClock_Config();
/* Start task */
osThreadDef(USER_Thread, StartThread, osPriorityNormal, 0, 8 * configMINIMAL_STACK_SIZE);
osThreadCreate(osThread(USER_Thread), NULL);
/* Create Application Queue */
osMessageQDef(osqueue, 1, uint16_t);
AppliEvent = osMessageCreate(osMessageQ(osqueue), NULL);
/* Start scheduler */
osKernelStart();
/* We should never get here as control is now taken by the scheduler */
for( ;; );
}
开发者ID:pierreroth64,项目名称:STM32Cube_FW_F4,代码行数:27,代码来源:main.c
示例9: CommInit
void CommInit(void)
{
huart2.Instance = USART2;
huart2.Init.BaudRate = 57600;
huart2.Init.WordLength = UART_WORDLENGTH_8B;
huart2.Init.StopBits = UART_STOPBITS_1;
huart2.Init.Parity = UART_PARITY_NONE;
huart2.Init.Mode = UART_MODE_TX_RX;
huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE;
huart2.Init.OverSampling = UART_OVERSAMPLING_16;
HAL_UART_Init(&huart2);
hcrc.Instance = CRC;
HAL_CRC_Init(&hcrc);
chIQInit(&g_iqp, g_comm_iqp_buf, COMM_IQP_BUF_SIZE, NULL);
osSemaphoreDef(COMM_SEMA);
commSema = osSemaphoreEmptyCreate(osSemaphore(COMM_SEMA));
if (NULL == commSema)
{
printf("[%s, L%d] create semaphore failed!\r\n", __FILE__, __LINE__);
return;
}
osThreadDef(CommTask, CommStartTask, osPriorityNormal, 0, 1024);
CommTaskHandle = osThreadCreate(osThread(CommTask), NULL);
if (NULL == CommTaskHandle)
{
printf("[%s, L%d] create thread failed!\r\n", __FILE__, __LINE__);
return;
}
HAL_NVIC_SetPriority(USART2_IRQn, configLIBRARY_LOWEST_INTERRUPT_PRIORITY, 0);
HAL_NVIC_EnableIRQ(USART2_IRQn);
__HAL_UART_ENABLE_IT(&huart2, UART_IT_RXNE);
return;
}
开发者ID:tusimbe,项目名称:battery,代码行数:39,代码来源:comm.c
示例10: AUDIO_RECORDER_Init
/**
* @brief Initializes audio
* @param None.
* @retval Audio state.
*/
AUDIO_RECORDER_ErrorTypdef AUDIO_RECORDER_Init(uint8_t volume)
{
/* Initialize internal audio structure */
haudio.in.volume = DEFAULT_REC_AUDIO_VOLUME;
/* Register audio BSP drivers callbacks */
AUDIO_IF_RegisterCallbacks(AUDIO_TransferComplete_CallBack,
AUDIO_HalfTransfer_CallBack,
AUDIO_Error_CallBack);
/* Create Audio Queue */
osMessageQDef(AUDIO_Queue, 1, uint16_t);
AudioEvent = osMessageCreate (osMessageQ(AUDIO_Queue), NULL);
/* Create Audio task */
osThreadDef(osAudio_Thread, Audio_Thread, osPriorityNormal, 0, 1024);
AudioThreadId = osThreadCreate (osThread(osAudio_Thread), NULL);
haudio.in.state = AUDIO_RECORDER_IDLE;
return AUDIO_RECORDER_ERROR_NONE;
}
开发者ID:nguyenvuhung,项目名称:STM32Cube_FW_F4,代码行数:27,代码来源:audio_recorder_app.c
示例11: main
/**
* @brief Main program.
* @param None
* @retval None
*/
int main(void)
{
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
HAL_Init();
/* Configure the system clock to 72 Mhz */
SystemClock_Config();
/* Start task */
osThreadDef(USER_Thread, StartThread, osPriorityNormal, 0, 8 * configMINIMAL_STACK_SIZE);
osThreadCreate(osThread(USER_Thread), NULL);
/* Create Application Queue */
osMessageQDef(osqueue, 1, uint16_t);
AppliEvent = osMessageCreate(osMessageQ(osqueue), NULL);
/* Start scheduler */
osKernelStart();
/* We should never get here as control is now taken by the scheduler */
for( ;; );
}
开发者ID:Lembed,项目名称:STM32CubeF1-mirrors,代码行数:27,代码来源:main.c
示例12: StartDefaultTask
/* StartDefaultTask function */
void StartDefaultTask(void const * argument)
{
/* init code for FATFS */
// MX_FATFS_Init();
/* init code for USB_HOST */
// MX_USB_HOST_Init();
/* USER CODE BEGIN StartDefaultTask */
osThreadDef(ledTask, StartLedTask, osPriorityNormal, 0, configMINIMAL_STACK_SIZE);
ledGreenTaskHandle = osThreadCreate(osThread(ledTask), NULL);
// osThreadDef(lcdDisplayTask, StartLcdDisplayTask, osPriorityNormal, 0, configMINIMAL_STACK_SIZE);
// lcdDisplayTaskHandle = osThreadCreate(osThread(lcdDisplayTask), NULL);
/* Infinite loop */
osThreadTerminate(defaultTaskHandle);
for(;;){
osDelay(1);
}
/* USER CODE END StartDefaultTask */
}
开发者ID:bleuelotus,项目名称:SweepRobot_Testing_Host,代码行数:23,代码来源:freertos.c
示例13: MX_FREERTOS_Init
void MX_FREERTOS_Init(void) {
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* USER CODE BEGIN RTOS_MUTEX */
/* add mutexes, ... */
/* USER CODE END RTOS_MUTEX */
/* USER CODE BEGIN RTOS_SEMAPHORES */
/* add semaphores, ... */
/* USER CODE END RTOS_SEMAPHORES */
/* Create the timer(s) */
/* definition and creation of debugTimer */
osTimerDef(debugTimer, debugTimerCallback);
debugTimerHandle = osTimerCreate(osTimer(debugTimer), osTimerPeriodic, NULL);
/* USER CODE BEGIN RTOS_TIMERS */
/* start timers, add new ones, ... */
osTimerStart(debugTimerHandle, 1000);
/* USER CODE END RTOS_TIMERS */
/* Create the thread(s) */
/* definition and creation of mainTask */
osThreadDef(mainTask, StartMainTask, osPriorityNormal, 0, 128);
mainTaskHandle = osThreadCreate(osThread(mainTask), NULL);
/* USER CODE BEGIN RTOS_THREADS */
/* add threads, ... */
/* USER CODE END RTOS_THREADS */
/* USER CODE BEGIN RTOS_QUEUES */
/* add queues, ... */
osMessageQDef(mainTaskMessageQ, 10, uint32_t);
mainTaskMessageQId = osMessageCreate(osMessageQ(mainTaskMessageQ), NULL);
/* USER CODE END RTOS_QUEUES */
}
开发者ID:wolfsberger,项目名称:STMCube-TempSensor,代码行数:38,代码来源:freertos.cpp
示例14: main
/**
* @brief Main program.
* @param None
* @retval None
*/
int main(void)
{
/* STM32F3xx HAL library initialization:
- Configure the Flash prefetch
- Systick timer is configured by default as source of time base, but user
can eventually implement his proper time base source (a general purpose
timer for example or other time source), keeping in mind that Time base
duration should be kept 1ms since PPP_TIMEOUT_VALUEs are defined and
handled in milliseconds basis.
- Set NVIC Group Priority to 4
- Low Level Initialization
*/
HAL_Init();
/* Initialize LEDs */
BSP_LED_Init(LED1);
BSP_LED_Init(LED2);
/* Configure the system clock to 72 MHz */
SystemClock_Config();
/* Create Timer */
osTimerDef(LEDTimer, osTimerCallback);
osTimerId osTimer = osTimerCreate(osTimer(LEDTimer), osTimerPeriodic, NULL);
/* Start Timer */
osTimerStart(osTimer, 200);
/* Create LED Thread */
osThreadDef(LEDThread, ToggleLEDsThread, osPriorityNormal, 0, configMINIMAL_STACK_SIZE);
osThreadCreate(osThread(LEDThread), NULL);
/* Start scheduler */
osKernelStart(NULL, NULL);
/* We should never get here as control is now taken by the scheduler */
for (;;);
}
开发者ID:afconsult-south,项目名称:dragonfly-fcb,代码行数:43,代码来源:main.c
示例15: main
/**
* @brief Main program
* @param None
* @retval None
*/
int main(void)
{
/* Enable the CPU Cache */
CPU_CACHE_Enable();
/* STM32F7xx HAL library initialization:
- Configure the Flash ART accelerator on ITCM interface
- Configure the Systick to generate an interrupt each 1 msec
- Set NVIC Group Priority to 4
- Low Level Initialization
*/
HAL_Init();
/* Configure the system clock to 216 MHz */
SystemClock_Config();
/* Configure LED1 */
BSP_LED_Init(LED1);
/* Configure TAMPER Button */
BSP_PB_Init(BUTTON_TAMPER, BUTTON_MODE_EXTI);
/* Define used semaphore */
osSemaphoreDef(SEM);
/* Create the semaphore used by the two threads. */
osSemaphore = osSemaphoreCreate(osSemaphore(SEM) , 1);
/* Create the Thread that toggle LED1 */
osThreadDef(SEM_Thread, SemaphoreTest, osPriorityNormal, 0, semtstSTACK_SIZE);
osThreadCreate(osThread(SEM_Thread), (void *) osSemaphore);
/* Start scheduler */
osKernelStart();
/* We should never get here as control is now taken by the scheduler */
for(;;);
}
开发者ID:MrZANE42,项目名称:verisure1512,代码行数:43,代码来源:main.c
示例16: main
/**
* @brief Main program.
* @param None
* @retval None
*/
int main(void)
{
/* STM32F4xx HAL library initialization:
- Configure the Flash prefetch, instruction and Data caches
- Configure the Systick to generate an interrupt each 1 msec
- Set NVIC Group Priority to 4
- Global MSP (MCU Support Package) initialization
*/
HAL_Init();
/* Configure the system clock to 180 Mhz */
SystemClock_Config();
/* Init task */
osThreadDef(Start, StartThread, osPriorityBelowNormal, 0, configMINIMAL_STACK_SIZE *2);
osThreadCreate (osThread(Start), NULL);
/* Start the scheduler */
osKernelStart(NULL, NULL);
/* We should never get here as control is now taken by the scheduler */
for( ;; );
}
开发者ID:ClintHaerinck,项目名称:STM32Cube_FW_F4,代码行数:28,代码来源:main.c
示例17: main
/**
* @brief Main program
* @param None
* @retval None
*/
int main(void)
{
/* STM32F4xx HAL library initialization:
- Configure the Flash prefetch, instruction and Data caches
- Configure the Systick to generate an interrupt each 1 msec
- Set NVIC Group Priority to 4
- Global MSP (MCU Support Package) initialization
*/
HAL_Init();
/* Configure the system clock to 180 MHz */
SystemClock_Config();
/* Initialize IO expander */
BSP_IO_Init();
/* Configure LED1 and LED3 */
BSP_LED_Init(LED1);
BSP_LED_Init(LED3);
/* ###########################################################################
When the uSD Card is used; the Camera module must be unplugged, this is due
to the shared pins between the two devices.
Otherwise, you have to set camera sensor in Power Down mode, by calling the
BSP_CAMERA_PwrDown() available under stm32469i_eval_camera.c BSP driver */
/*##-1- Start task #########################################################*/
osThreadDef(uSDThread, StartThread, osPriorityNormal, 0, 8 * configMINIMAL_STACK_SIZE);
osThreadCreate(osThread(uSDThread), NULL);
/*##-2- Start scheduler ####################################################*/
osKernelStart();
/* We should never get here as control is now taken by the scheduler */
for( ;; );
}
开发者ID:Lembed,项目名称:STM32CubeF4-mirrors,代码行数:42,代码来源:main.c
示例18: Menu_Init
/**
* @brief Demo state machine.
* @param None
* @retval None
*/
void Menu_Init(void)
{
/* Create Menu Semaphore */
osSemaphoreDef(osSem);
MenuEvent = osSemaphoreCreate(osSemaphore(osSem), 1);
/* Force menu to show Item 0 by default */
osSemaphoreRelease(MenuEvent);
/* Menu task */
osThreadDef(Menu_Thread, MSC_MenuThread, osPriorityHigh, 0, 8 * configMINIMAL_STACK_SIZE);
osThreadCreate(osThread(Menu_Thread), NULL);
/* Define used semaphore fot Joystick*/
osSemaphoreDef(JOY_SEM);
/* Create the semaphore used by the two threads. */
osJoySemaphore = osSemaphoreCreate(osSemaphore(JOY_SEM) , 1);
BSP_LCD_SetTextColor(LCD_COLOR_GREEN);
BSP_LCD_DisplayStringAtLine(15, (uint8_t *)"Use [Joystick Left/Right] to scroll up/down");
BSP_LCD_DisplayStringAtLine(16, (uint8_t *)"Use [Joystick Up/Down] to scroll MSC menu");
}
开发者ID:z80,项目名称:stm32f429,代码行数:29,代码来源:menu.c
示例19: MX_FREERTOS_Init
void MX_FREERTOS_Init(void) {
/* USER CODE BEGIN Init */
/* USER CODE END Init */
/* USER CODE BEGIN RTOS_MUTEX */
/* add mutexes, ... */
/* USER CODE END RTOS_MUTEX */
/* USER CODE BEGIN RTOS_SEMAPHORES */
/* add semaphores, ... */
/* USER CODE END RTOS_SEMAPHORES */
/* USER CODE BEGIN RTOS_TIMERS */
/* start timers, add new ones, ... */
/* USER CODE END RTOS_TIMERS */
/* Create the thread(s) */
/* definition and creation of defaultTask */
/*
osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 128);
defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);
*/
/* USER CODE BEGIN RTOS_THREADS */
/* add threads, ... */
osThreadDef(thread_push,thread_push_entry,osPriorityRealtime,1,128);
thread_push_id = osThreadCreate(osThread(thread_push),NULL);
/* USER CODE END RTOS_THREADS */
/* USER CODE BEGIN RTOS_QUEUES */
/* add queues, ... */
osMessageQDef(mesq,MesQ_Size,uint32_t);
mesq_id = osMessageCreate(osMessageQ(mesq),thread_push_id);
/* USER CODE END RTOS_QUEUES */
}
开发者ID:MrH2S,项目名称:coin_sort_mach_l0,代码行数:36,代码来源:freertos.c
示例20: StartInitTask
void StartInitTask(void const * argument)
{
console_init();
osThreadDef(touchTask, StartTouchTask, osPriorityHigh, 0, 8192);
touchTaskHandle = osThreadCreate(osThread(touchTask), NULL);
osThreadDef(pwmTask, StartPwmTask, osPriorityNormal, 0, 8192);
pwmTaskHandle = osThreadCreate(osThread(pwmTask), NULL);
osThreadDef(ledTask, StartLedTask, osPriorityNormal, 0, 8192);
ledTaskHandle = osThreadCreate(osThread(ledTask), NULL);
osThreadDef(fsTask, StartFsTask, osPriorityNormal, 0, 32768);
fsTaskHandle = osThreadCreate(osThread(fsTask), NULL);
osThreadDef(guiTask, StartGuiTask, osPriorityNormal, 0, 8192);
guiTaskHandle = osThreadCreate(osThread(guiTask), NULL);
osThreadDef(blinkTask, StartBlinkTask, osPriorityNormal, 0, 8192);
blinkTaskHandle = osThreadCreate(osThread(blinkTask), NULL);
vTaskDelete(initTaskHandle);
}
开发者ID:Oxbern,项目名称:CCube_Firmware,代码行数:24,代码来源:freertos.c
注:本文中的osThreadDef函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论