freertos.c 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. /* USER CODE BEGIN Header */
  2. /**
  3. ******************************************************************************
  4. * File Name : freertos.c
  5. * Description : Code for freertos applications
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2022 STMicroelectronics.
  10. * All rights reserved.
  11. *
  12. * This software is licensed under terms that can be found in the LICENSE file
  13. * in the root directory of this software component.
  14. * If no LICENSE file comes with this software, it is provided AS-IS.
  15. *
  16. ******************************************************************************
  17. */
  18. /* USER CODE END Header */
  19. /* Includes ------------------------------------------------------------------*/
  20. #include "FreeRTOS.h"
  21. #include "task.h"
  22. #include "main.h"
  23. /* Private includes ----------------------------------------------------------*/
  24. /* USER CODE BEGIN Includes */
  25. /* USER CODE END Includes */
  26. /* Private typedef -----------------------------------------------------------*/
  27. /* USER CODE BEGIN PTD */
  28. /* USER CODE END PTD */
  29. /* Private define ------------------------------------------------------------*/
  30. /* USER CODE BEGIN PD */
  31. /* USER CODE END PD */
  32. /* Private macro -------------------------------------------------------------*/
  33. /* USER CODE BEGIN PM */
  34. /* USER CODE END PM */
  35. /* Private variables ---------------------------------------------------------*/
  36. /* USER CODE BEGIN Variables */
  37. /* USER CODE END Variables */
  38. /* Private function prototypes -----------------------------------------------*/
  39. /* USER CODE BEGIN FunctionPrototypes */
  40. /* USER CODE END FunctionPrototypes */
  41. /* Hook prototypes */
  42. void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName);
  43. /* USER CODE BEGIN 4 */
  44. void vApplicationStackOverflowHook(xTaskHandle xTask, signed char *pcTaskName)
  45. {
  46. /* ETH_CODE: add breakpoint when stack oveflow is detected by FreeRTOS.
  47. * Useful for debugging issues.
  48. */
  49. __BKPT(0);
  50. }
  51. /* USER CODE END 4 */
  52. /* Private application code --------------------------------------------------*/
  53. /* USER CODE BEGIN Application */
  54. /* USER CODE END Application */