STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
freertos.c
Go to the documentation of this file.
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) 2026 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
20
/* Includes ------------------------------------------------------------------*/
21
#include "
FreeRTOS.h
"
22
#include "
task.h
"
23
#include "main.h"
24
25
/* Private includes ----------------------------------------------------------*/
26
/* USER CODE BEGIN Includes */
27
28
/* USER CODE END Includes */
29
30
/* Private typedef -----------------------------------------------------------*/
31
/* USER CODE BEGIN PTD */
32
33
/* USER CODE END PTD */
34
35
/* Private define ------------------------------------------------------------*/
36
/* USER CODE BEGIN PD */
37
38
/* USER CODE END PD */
39
40
/* Private macro -------------------------------------------------------------*/
41
/* USER CODE BEGIN PM */
42
43
/* USER CODE END PM */
44
45
/* Private variables ---------------------------------------------------------*/
46
/* USER CODE BEGIN Variables */
47
48
/* USER CODE END Variables */
49
50
/* Private function prototypes -----------------------------------------------*/
51
/* USER CODE BEGIN FunctionPrototypes */
52
53
/* USER CODE END FunctionPrototypes */
54
55
/* Hook prototypes */
56
void
vApplicationStackOverflowHook
(
xTaskHandle
xTask,
char
*pcTaskName);
57
void
vApplicationMallocFailedHook
(
void
);
58
59
/* USER CODE BEGIN 4 */
60
void
vApplicationStackOverflowHook
(
xTaskHandle
xTask,
char
*pcTaskName)
61
{
62
/* Run time stack overflow checking is performed if
63
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is
64
called if a stack overflow is detected. */
65
}
66
/* USER CODE END 4 */
67
68
/* USER CODE BEGIN 5 */
69
void
vApplicationMallocFailedHook
(
void
)
70
{
71
/* vApplicationMallocFailedHook() will only be called if
72
configUSE_MALLOC_FAILED_HOOK is set to 1 in FreeRTOSConfig.h. It is a hook
73
function that will get called if a call to pvPortMalloc() fails.
74
pvPortMalloc() is called internally by the kernel whenever a task, queue,
75
timer or semaphore is created. It is also called by various parts of the
76
demo application. If heap_1.c or heap_2.c are used, then the size of the
77
heap available to pvPortMalloc() is defined by configTOTAL_HEAP_SIZE in
78
FreeRTOSConfig.h, and the xPortGetFreeHeapSize() API function can be used
79
to query the size of free heap space that remains (although it does not
80
provide information on how the remaining heap might be fragmented). */
81
}
82
/* USER CODE END 5 */
83
84
/* Private application code --------------------------------------------------*/
85
/* USER CODE BEGIN Application */
86
87
/* USER CODE END Application */
88
FreeRTOS.h
xTaskHandle
#define xTaskHandle
Definition
FreeRTOS.h:1087
vApplicationStackOverflowHook
void vApplicationStackOverflowHook(xTaskHandle xTask, char *pcTaskName)
File Name : freertos.c Description : Code for freertos applications.
Definition
freertos.c:60
vApplicationMallocFailedHook
void vApplicationMallocFailedHook(void)
Definition
freertos.c:69
task.h
firmware
Flight_Computer
Core
Src
freertos.c
Generated by
1.15.0