81 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			2.9 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* USER CODE BEGIN Header */
 | |
| /**
 | |
|   ******************************************************************************
 | |
|   * File Name          : freertos.c
 | |
|   * Description        : Code for freertos applications
 | |
|   ******************************************************************************
 | |
|   * @attention
 | |
|   *
 | |
|   * <h2><center>© Copyright (c) 2020 STMicroelectronics.
 | |
|   * All rights reserved.</center></h2>
 | |
|   *
 | |
|   * This software component is licensed by ST under Ultimate Liberty license
 | |
|   * SLA0044, the "License"; You may not use this file except in compliance with
 | |
|   * the License. You may obtain a copy of the License at:
 | |
|   *                             www.st.com/SLA0044
 | |
|   *
 | |
|   ******************************************************************************
 | |
|   */
 | |
| /* USER CODE END Header */
 | |
| 
 | |
| /* Includes ------------------------------------------------------------------*/
 | |
| #include "FreeRTOS.h"
 | |
| #include "task.h"
 | |
| #include "main.h"
 | |
| 
 | |
| /* Private includes ----------------------------------------------------------*/
 | |
| /* USER CODE BEGIN Includes */
 | |
| 
 | |
| /* USER CODE END Includes */
 | |
| 
 | |
| /* Private typedef -----------------------------------------------------------*/
 | |
| /* USER CODE BEGIN PTD */
 | |
| 
 | |
| /* USER CODE END PTD */
 | |
| 
 | |
| /* Private define ------------------------------------------------------------*/
 | |
| /* USER CODE BEGIN PD */
 | |
| 
 | |
| /* USER CODE END PD */
 | |
| 
 | |
| /* Private macro -------------------------------------------------------------*/
 | |
| /* USER CODE BEGIN PM */
 | |
| 
 | |
| /* USER CODE END PM */
 | |
| 
 | |
| /* Private variables ---------------------------------------------------------*/
 | |
| /* USER CODE BEGIN Variables */
 | |
| 
 | |
| /* USER CODE END Variables */
 | |
| 
 | |
| /* Private function prototypes -----------------------------------------------*/
 | |
| /* USER CODE BEGIN FunctionPrototypes */
 | |
| extern portBASE_TYPE IdleTaskHook(void* p);  
 | |
| /* USER CODE END FunctionPrototypes */
 | |
| 
 | |
| /* Hook prototypes */
 | |
| void vApplicationIdleHook(void);
 | |
| 
 | |
| /* USER CODE BEGIN 2 */
 | |
| void vApplicationIdleHook( void )
 | |
| {
 | |
|    /* vApplicationIdleHook() will only be called if configUSE_IDLE_HOOK is set
 | |
|    to 1 in FreeRTOSConfig.h. It will be called on each iteration of the idle
 | |
|    task. It is essential that code added to this hook function never attempts
 | |
|    to block in any way (for example, call xQueueReceive() with a block time
 | |
|    specified, or call vTaskDelay()). If the application makes use of the
 | |
|    vTaskDelete() API function (as this demo application does) then it is also
 | |
|    important that vApplicationIdleHook() is permitted to return to its calling
 | |
|    function, because it is the responsibility of the idle task to clean up
 | |
|    memory allocated by the kernel to any task that has since been deleted. */
 | |
|    vTaskSetApplicationTaskTag(NULL, IdleTaskHook);
 | |
| }
 | |
| /* USER CODE END 2 */
 | |
| 
 | |
| /* Private application code --------------------------------------------------*/
 | |
| /* USER CODE BEGIN Application */
 | |
| 
 | |
| /* USER CODE END Application */
 | |
| 
 | |
| /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
 |