Browse Source

修改笔误

master
Lizongdi 2 weeks ago
parent
commit
70ea146533
  1. 8
      Core/Src/freertos.c
  2. 3
      Core/Src/main.c
  3. 2
      robot

8
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); 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 */
/** /**
@ -112,9 +114,7 @@ void MX_FREERTOS_Init(void) {
/* 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 */

3
Core/Src/main.c

@ -64,7 +64,7 @@ void SystemClock_Config(void);
static void MPU_Config(void); static void MPU_Config(void);
void MX_FREERTOS_Init(void); void MX_FREERTOS_Init(void);
/* USER CODE BEGIN PFP */ /* USER CODE BEGIN PFP */
void Myprint_Init(void);
/* USER CODE END PFP */ /* USER CODE END PFP */
/* Private user code ---------------------------------------------------------*/ /* Private user code ---------------------------------------------------------*/
@ -132,7 +132,6 @@ int main(void)
#ifdef MEM_POOL_TOTAL_SIZE #ifdef MEM_POOL_TOTAL_SIZE
RD_INIT(); RD_INIT();
#ifdef USE_PRINT #ifdef USE_PRINT
void Myprint_Init(void);
Myprint_Init(); Myprint_Init();
#endif #endif
#endif #endif

2
robot

@ -1 +1 @@
Subproject commit 12f5da68f1ed82939e97530168d8dae780f7b8c2 Subproject commit 793bf2b4663df1869ca744b765597e2bf3d9b545
Loading…
Cancel
Save