- /* definition and creation of defaultTask */
- osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 128);
- defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);
- /* definition and creation of myTask02 */
- osThreadDef(myTask02, StartTask02, osPriorityAboveNormal, 0, 128);
- myTask02Handle = osThreadCreate(osThread(myTask02), NULL);
- /* USER CODE BEGIN RTOS_THREADS */
- /* add threads, ... */
- osThreadDef(myTask03, StartTask03, osPriorityBelowNormal, 0, 128);
- myTask03Handle = osThreadCreate(osThread (myTask03), NULL);
- /* USER CODE END RTOS_THREADS */
|