freertos.c 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * File Name : freertos.c
  5. * Description : Code for freertos applications
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by ST under Ultimate Liberty license
  13. * SLA0044, the "License"; You may not use this file except in compliance with
  14. * the License. You may obtain a copy of the License at:
  15. * www.st.com/SLA0044
  16. *
  17. ******************************************************************************
  18. */
  19. /* USER CODE END Header */
  20. /* Includes ------------------------------------------------------------------*/
  21. #include "FreeRTOS.h"
  22. #include "task.h"
  23. #include "main.h"
  24. /* Private includes ----------------------------------------------------------*/
  25. /* USER CODE BEGIN Includes */
  26. /* USER CODE END Includes */
  27. /* Private typedef -----------------------------------------------------------*/
  28. /* USER CODE BEGIN PTD */
  29. /* USER CODE END PTD */
  30. /* Private define ------------------------------------------------------------*/
  31. /* USER CODE BEGIN PD */
  32. /* USER CODE END PD */
  33. /* Private macro -------------------------------------------------------------*/
  34. /* USER CODE BEGIN PM */
  35. /* USER CODE END PM */
  36. /* Private variables ---------------------------------------------------------*/
  37. /* USER CODE BEGIN Variables */
  38. /* USER CODE END Variables */
  39. /* Private function prototypes -----------------------------------------------*/
  40. /* USER CODE BEGIN FunctionPrototypes */
  41. /* USER CODE END FunctionPrototypes */
  42. /* Hook prototypes */
  43. void vApplicationIdleHook(void);
  44. /* USER CODE BEGIN 2 */
  45. void vApplicationIdleHook( void )
  46. {
  47. /* vApplicationIdleHook() will only be called if configUSE_IDLE_HOOK is set
  48. to 1 in FreeRTOSConfig.h. It will be called on each iteration of the idle
  49. task. It is essential that code added to this hook function never attempts
  50. to block in any way (for example, call xQueueReceive() with a block time
  51. specified, or call vTaskDelay()). If the application makes use of the
  52. vTaskDelete() API function (as this demo application does) then it is also
  53. important that vApplicationIdleHook() is permitted to return to its calling
  54. function, because it is the responsibility of the idle task to clean up
  55. memory allocated by the kernel to any task that has since been deleted. */
  56. }
  57. /* USER CODE END 2 */
  58. /* Private application code --------------------------------------------------*/
  59. /* USER CODE BEGIN Application */
  60. /* USER CODE END Application */
  61. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/