/\* USER CODE BEGIN Header \*/ /\*\* \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \* File Name : freertos.c \* Description : Code for freertos applications \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \* @attention \* \* Copyright (c) 2022 STMicroelectronics. \* All rights reserved. \* \* This software is licensed under terms that can be found in the LICENSE file \* in the root directory of this software component. \* If no LICENSE file comes with this software, it is provided AS-IS. \* \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* \*/ /\* USER CODE END Header \*/
/\* 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 \*/
/\* USER CODE BEGIN RTOS\_QUEUES \*/ /\* add queues, ... \*/ /\* USER CODE END RTOS\_QUEUES \*/
/\* Create the thread(s) \*/ /\* creation of defaultTask \*/ defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
/\* USER CODE BEGIN RTOS\_THREADS \*/ /\* add threads, ... \*/ /\* USER CODE END RTOS\_THREADS \*/
/\* USER CODE BEGIN RTOS\_EVENTS \*/ /\* add events, ... \*/ /\* USER CODE END RTOS\_EVENTS \*/
}
/\* USER CODE BEGIN Header\_StartDefaultTask \*/ /\*\* \* @brief Function implementing the defaultTask thread. \* @param argument: Not used \* @retval None \*/ /\* USER CODE END Header\_StartDefaultTask \*/ void StartDefaultTask(void \*argument) { /\* USER CODE BEGIN StartDefaultTask \*/ /\* Infinite loop \*/ for(;;) { osDelay(1); } /\* USER CODE END StartDefaultTask \*/ }
/\* Private application code --------------------------------------------------\*/ /\* USER CODE BEGIN Application \*/