|
|
@ -70,14 +70,16 @@ void MX_FREERTOS_Init(void); /* (MISRA C 2004 rule 8.1) */ |
|
|
void vApplicationStackOverflowHook(xTaskHandle xTask, char *pcTaskName); |
|
|
void vApplicationStackOverflowHook(xTaskHandle xTask, char *pcTaskName); |
|
|
|
|
|
|
|
|
/* USER CODE BEGIN 4 */ |
|
|
/* USER CODE BEGIN 4 */ |
|
|
|
|
|
void StackOverflowHook(TaskHandle_t xTask, char *pcTaskName); |
|
|
void vApplicationStackOverflowHook(xTaskHandle xTask, char *pcTaskName) |
|
|
void vApplicationStackOverflowHook(xTaskHandle xTask, char *pcTaskName) |
|
|
{ |
|
|
{ |
|
|
void StackOverflowHook(TaskHandle_t xTask, char *pcTaskName); |
|
|
|
|
|
StackOverflowHook(xTask, pcTaskName); |
|
|
StackOverflowHook(xTask, pcTaskName); |
|
|
/* Run time stack overflow checking is performed if
|
|
|
/* Run time stack overflow checking is performed if
|
|
|
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is |
|
|
configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is |
|
|
called if a stack overflow is detected. */ |
|
|
called if a stack overflow is detected. */ |
|
|
} |
|
|
} |
|
|
|
|
|
void Drv_InterfaceInit(void); |
|
|
|
|
|
void MyTask_Init(void); |
|
|
/* USER CODE END 4 */ |
|
|
/* USER CODE END 4 */ |
|
|
|
|
|
|
|
|
/**
|
|
|
/**
|
|
|
@ -111,10 +113,8 @@ void MX_FREERTOS_Init(void) { |
|
|
defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes); |
|
|
defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes); |
|
|
|
|
|
|
|
|
/* USER CODE BEGIN RTOS_THREADS */ |
|
|
/* USER CODE BEGIN RTOS_THREADS */ |
|
|
/* add threads, ... */ |
|
|
/* add threads, ... */ |
|
|
void GF_Init(void); |
|
|
Drv_InterfaceInit(); |
|
|
GF_Init(); |
|
|
|
|
|
void MyTask_Init(void); |
|
|
|
|
|
MyTask_Init(); |
|
|
MyTask_Init(); |
|
|
/* USER CODE END RTOS_THREADS */ |
|
|
/* USER CODE END RTOS_THREADS */ |
|
|
|
|
|
|
|
|
|