feat: 保存已验证的CH390网络打通基线
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
#define configTICK_RATE_HZ ((TickType_t)1000)
|
||||
#define configMAX_PRIORITIES ( 7 )
|
||||
#define configMINIMAL_STACK_SIZE ((uint16_t)128)
|
||||
#define configTOTAL_HEAP_SIZE ((size_t)10240)
|
||||
#define configTOTAL_HEAP_SIZE ((size_t)14848)
|
||||
#define configMAX_TASK_NAME_LEN ( 16 )
|
||||
#define configUSE_TRACE_FACILITY 1
|
||||
#define configUSE_16_BIT_TICKS 0
|
||||
@@ -152,14 +152,6 @@ standard names. */
|
||||
/* USER CODE BEGIN Defines */
|
||||
/* Section where parameter definitions can be added (for instance, to override default ones in FreeRTOS.h) */
|
||||
|
||||
/* lwIP sys_arch compatibility macros */
|
||||
#define sys_arch_protect() vPortEnterCritical()
|
||||
#define sys_arch_unprotect(x) vPortExitCritical()
|
||||
#define sys_now() ((uint32_t)xTaskGetTickCount())
|
||||
#define SYS_ARCH_DECL_PROTECT(lev) uint32_t lev
|
||||
#define SYS_ARCH_PROTECT(lev) (lev) = vPortEnterCritical()
|
||||
#define SYS_ARCH_UNPROTECT(lev) vPortExitCritical()
|
||||
|
||||
/* Application task priorities (higher number = higher priority) */
|
||||
#define TASK_PRIORITY_TCPIP 6
|
||||
#define TASK_PRIORITY_NET_POLL 5
|
||||
@@ -173,19 +165,19 @@ standard names. */
|
||||
/* Application task stack sizes (in words) */
|
||||
#define TASK_STACK_TCPIP 512
|
||||
#define TASK_STACK_NET_POLL 384
|
||||
#define TASK_STACK_TCP_SERVER 384
|
||||
#define TASK_STACK_TCP_CLIENT 256
|
||||
#define TASK_STACK_UART_RX 384
|
||||
#define TASK_STACK_TCP_SERVER 320
|
||||
#define TASK_STACK_TCP_CLIENT 224
|
||||
#define TASK_STACK_UART_RX 320
|
||||
#define TASK_STACK_ROUTE 512
|
||||
#define TASK_STACK_CONFIG 256
|
||||
#define TASK_STACK_CONFIG 384
|
||||
#define TASK_STACK_DEFAULT 128
|
||||
|
||||
/* Route message pool for zero-copy inter-task communication */
|
||||
#define ROUTE_MSG_POOL_SIZE 8
|
||||
#define ROUTE_MSG_POOL_SIZE 6
|
||||
#define ROUTE_MSG_MAX_PAYLOAD 512
|
||||
|
||||
/* lwIP thread name for tcpip_thread */
|
||||
#define TCPIP_THREAD_NAME "tcpip"
|
||||
#define DIAG_TASK_ISOLATION 1
|
||||
|
||||
/* USER CODE END Defines */
|
||||
|
||||
#endif /* FREERTOS_CONFIG_H */
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
#ifndef DEBUG_LOG_H
|
||||
#define DEBUG_LOG_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern volatile uint32_t g_rtt_log_seq;
|
||||
extern volatile uint32_t g_rtt_log_drop_count;
|
||||
extern volatile uint32_t g_rtt_log_last_drop_seq;
|
||||
|
||||
void debug_log_init(void);
|
||||
void debug_log_write(const char *msg);
|
||||
void debug_log_printf(const char *fmt, ...);
|
||||
void debug_log_boot(const char *tag);
|
||||
void debug_log_fault(const char *tag);
|
||||
void debug_log_runtime_snapshot(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@@ -51,6 +51,7 @@ extern "C" {
|
||||
|
||||
/* Exported functions prototypes ---------------------------------------------*/
|
||||
void Error_Handler(void);
|
||||
void Debug_TrapWithRttHint(const char *tag);
|
||||
|
||||
/* USER CODE BEGIN EFP */
|
||||
|
||||
|
||||
+5
-48
@@ -1,74 +1,31 @@
|
||||
/* USER CODE BEGIN Header */
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file stm32f1xx_it.h
|
||||
* @brief This file contains the headers of the interrupt handlers.
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* Copyright (c) 2026 STMicroelectronics.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This software is licensed under terms that can be found in the LICENSE file
|
||||
* in the root directory of this software component.
|
||||
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
/* USER CODE END Header */
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __STM32F1xx_IT_H
|
||||
#define __STM32F1xx_IT_H
|
||||
#ifndef __STM32F1XX_IT_H
|
||||
#define __STM32F1XX_IT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Private includes ----------------------------------------------------------*/
|
||||
/* USER CODE BEGIN Includes */
|
||||
|
||||
/* USER CODE END Includes */
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* USER CODE BEGIN ET */
|
||||
|
||||
/* USER CODE END ET */
|
||||
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/* USER CODE BEGIN EC */
|
||||
|
||||
/* USER CODE END EC */
|
||||
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
/* USER CODE BEGIN EM */
|
||||
|
||||
/* USER CODE END EM */
|
||||
|
||||
/* Exported functions prototypes ---------------------------------------------*/
|
||||
void NMI_Handler(void);
|
||||
void HardFault_Handler(void);
|
||||
void MemManage_Handler(void);
|
||||
void BusFault_Handler(void);
|
||||
void UsageFault_Handler(void);
|
||||
void DebugMon_Handler(void);
|
||||
void SysTick_Handler(void);
|
||||
void DMA1_Channel2_IRQHandler(void);
|
||||
void DMA1_Channel3_IRQHandler(void);
|
||||
void DMA1_Channel4_IRQHandler(void);
|
||||
void DMA1_Channel5_IRQHandler(void);
|
||||
void DMA1_Channel6_IRQHandler(void);
|
||||
void DMA1_Channel7_IRQHandler(void);
|
||||
void EXTI0_IRQHandler(void);
|
||||
void SPI1_IRQHandler(void);
|
||||
void USART1_IRQHandler(void);
|
||||
void USART2_IRQHandler(void);
|
||||
void USART3_IRQHandler(void);
|
||||
/* USER CODE BEGIN EFP */
|
||||
|
||||
/* USER CODE END EFP */
|
||||
void TIM4_IRQHandler(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __STM32F1xx_IT_H */
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user