diff --git a/Core/Src/freertos.c b/Core/Src/freertos.c index 4a11843..6a15ab5 100644 --- a/Core/Src/freertos.c +++ b/Core/Src/freertos.c @@ -70,14 +70,16 @@ void MX_FREERTOS_Init(void); /* (MISRA C 2004 rule 8.1) */ void vApplicationStackOverflowHook(xTaskHandle xTask, char *pcTaskName); /* USER CODE BEGIN 4 */ +void StackOverflowHook(TaskHandle_t xTask, char *pcTaskName); void vApplicationStackOverflowHook(xTaskHandle xTask, char *pcTaskName) { - void StackOverflowHook(TaskHandle_t xTask, char *pcTaskName); StackOverflowHook(xTask, pcTaskName); /* Run time stack overflow checking is performed if configCHECK_FOR_STACK_OVERFLOW is defined to 1 or 2. This hook function is called if a stack overflow is detected. */ } +void Drv_InterfaceInit(void); +void MyTask_Init(void); /* USER CODE END 4 */ /** @@ -111,10 +113,8 @@ void MX_FREERTOS_Init(void) { defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes); /* USER CODE BEGIN RTOS_THREADS */ - /* add threads, ... */ - void GF_Init(void); - GF_Init(); - void MyTask_Init(void); + /* add threads, ... */ + Drv_InterfaceInit(); MyTask_Init(); /* USER CODE END RTOS_THREADS */ diff --git a/Core/Src/main.c b/Core/Src/main.c index 1d94dbe..9980fe1 100644 --- a/Core/Src/main.c +++ b/Core/Src/main.c @@ -64,7 +64,7 @@ void SystemClock_Config(void); static void MPU_Config(void); void MX_FREERTOS_Init(void); /* USER CODE BEGIN PFP */ - +void Myprint_Init(void); /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------*/ @@ -132,7 +132,6 @@ int main(void) #ifdef MEM_POOL_TOTAL_SIZE RD_INIT(); #ifdef USE_PRINT - void Myprint_Init(void); Myprint_Init(); #endif #endif diff --git a/robot b/robot index 12f5da6..793bf2b 160000 --- a/robot +++ b/robot @@ -1 +1 @@ -Subproject commit 12f5da68f1ed82939e97530168d8dae780f7b8c2 +Subproject commit 793bf2b4663df1869ca744b765597e2bf3d9b545