CH395F 硬件测试完毕

This commit is contained in:
2026-08-24 16:16:18 +08:00
parent fc88bc8752
commit 4375873083
14 changed files with 2183 additions and 787 deletions

View File

@@ -35,6 +35,7 @@
#include "gd5f2gq5ue.h"
#include "lftpd.h"
#include "../test/ch395f_test_task.h"
#include "../test/ch395f_test.h" /* ENABLE_NET_LAYER_TESTSnetTask 条件创建 */
/* USER CODE END Includes */
/* Private typedef -----------------------------------------------------------*/
@@ -161,7 +162,7 @@ void MX_FREERTOS_Init(void) {
defaultTaskHandle = osThreadNew(StartDefaultTask, NULL, &defaultTask_attributes);
/* creation of netTask */
netTaskHandle = osThreadNew(StartNetTask, NULL, &netTask_attributes);
//netTaskHandle = osThreadNew(StartNetTask, NULL, &netTask_attributes);
/* creation of ftpTask */
//ftpTaskHandle = osThreadNew(StartFtpTask, NULL, &ftpTask_attributes);
@@ -170,7 +171,10 @@ void MX_FREERTOS_Init(void) {
ch395fTestTaskHandle = osThreadNew(StartCh395fTestTask, NULL, &ch395fTestTask_attributes);
/* USER CODE BEGIN RTOS_THREADS */
/* add threads, ... */
#ifdef ENABLE_NET_LAYER_TESTS
/* NET 层测试模式(阶段 6~10完整网络栈netTask 负责轮询与消息处理 */
netTaskHandle = osThreadNew(StartNetTask, NULL, &netTask_attributes);
#endif
/* USER CODE END RTOS_THREADS */
/* USER CODE BEGIN RTOS_EVENTS */