没关log,有密码

This commit is contained in:
stark1898y 2025-01-23 16:29:51 +08:00
parent 867e3a21a7
commit 41f7ff50a8
18 changed files with 164 additions and 137 deletions

View File

@ -5,7 +5,7 @@
"type": "mrs-debugger", "type": "mrs-debugger",
"request": "launch", "request": "launch",
"name": "JT-DT-YD4N02A_RTT_MRS-4G", "name": "JT-DT-YD4N02A_RTT_MRS-4G",
"cwd": "d:\\SXDT\\Project\\CH32\\JT-DT-YD4N02A_RTT_MRS-NT26K", "cwd": "c:\\Users\\16586\\Desktop\\JT-DT-YD4N02A_4G_RTT_MRS",
"openOCDCfg": { "openOCDCfg": {
"useLocalOpenOCD": true, "useLocalOpenOCD": true,
"executable": "c:/MounRiver/MounRiver_Studio2/resources/app/resources/win32/components/WCH/OpenOCD/OpenOCD/bin/openocd.exe", "executable": "c:/MounRiver/MounRiver_Studio2/resources/app/resources/win32/components/WCH/OpenOCD/OpenOCD/bin/openocd.exe",
@ -39,8 +39,8 @@
"additionalCommands": [] "additionalCommands": []
}, },
"loadedFiles": { "loadedFiles": {
"executableFile": "d:\\SXDT\\Project\\CH32\\JT-DT-YD4N02A_RTT_MRS-NT26K\\obj\\JT-DT-YD4N02A_RTT_MRS-4G.elf", "executableFile": "c:\\Users\\16586\\Desktop\\JT-DT-YD4N02A_4G_RTT_MRS\\obj\\JT-DT-YD4N02A_RTT_MRS-4G.elf",
"symbolFile": "d:\\SXDT\\Project\\CH32\\JT-DT-YD4N02A_RTT_MRS-NT26K\\obj\\JT-DT-YD4N02A_RTT_MRS-4G.elf", "symbolFile": "c:\\Users\\16586\\Desktop\\JT-DT-YD4N02A_4G_RTT_MRS\\obj\\JT-DT-YD4N02A_RTT_MRS-4G.elf",
"executableFileOffset": 0, "executableFileOffset": 0,
"symbolFileOffset": 0 "symbolFileOffset": 0
}, },

View File

@ -9,10 +9,15 @@ Description=============ROM(byte): 256K, SRAM(byte): 64K, CHIP PINS: 64, GPIO PO
Mcu Type=CH32V30x Mcu Type=CH32V30x
Address=0x08000000 Address=0x08000000
Target Path=obj\JT-DT-YD4N02A_RTT_MRS-4G.hex Target Path=obj\JT-DT-YD4N02A_RTT_MRS-4G.hex
Exe Path=
Exe Arguments=
CLKSpeed=1 CLKSpeed=1
DebugInterfaceMode=-1 DebugInterfaceMode=0
Erase All=true Erase All=true
Program=true Program=true
Verify=true Verify=true
Reset=true Reset=true
SDIPrintf=false SDIPrintf=false
Disable Power Output=false
Clear CodeFlash=false
Disable Code-Protect=false

View File

@ -40,7 +40,7 @@
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="handle_reset"/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.stopAt" value="handle_reset"/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.pcRegister" value=""/>
<stringAttribute key="com.mounriver.debug.gdbjtag.svdPath" value="${eclipse_home}template/wizard/WCH/RISC-V/CH32V307/NoneOS/CH32V307xx.svd"/> <stringAttribute key="com.mounriver.debug.gdbjtag.svdPath" value="${eclipse_home}template/wizard/WCH/RISC-V/CH32V307/NoneOS/CH32V307xx.svd"/>
<stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="obj\JT-DT-YD4N02A_RTT_MRS-4G.elf" /> <stringAttribute key="org.eclipse.cdt.launch.PROGRAM_NAME" value="obj/JT-DT-YD4N02A_RTT_MRS-4G.elf"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="JT-DT-YD4N02A_RTT_MRS-4G"/> <stringAttribute key="org.eclipse.cdt.launch.PROJECT_ATTR" value="JT-DT-YD4N02A_RTT_MRS-4G"/>
<stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value=""/> <stringAttribute key="org.eclipse.cdt.launch.PROJECT_BUILD_CONFIG_ID_ATTR" value=""/>
<stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="GNU MCU OpenOCD"/> <stringAttribute key="org.eclipse.cdt.debug.gdbjtag.core.jtagDevice" value="GNU MCU OpenOCD"/>
@ -48,13 +48,13 @@
<stringAttribute key="com.mounriver.debug.gdbjtag.openocd.gdbServerLog" value=""/> <stringAttribute key="com.mounriver.debug.gdbjtag.openocd.gdbServerLog" value=""/>
<stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/> <stringAttribute key="org.eclipse.cdt.launch.COREFILE_PATH" value=""/>
<stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/> <stringAttribute key="process_factory_id" value="org.eclipse.cdt.dsf.gdb.GdbProcessFactory"/>
<stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;\r\n&lt;memoryBlockExpressionList context=&quot;Context string&quot;/&gt;\r\n" /> <stringAttribute key="org.eclipse.dsf.launch.MEMORY_BLOCKS" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?>\r\n&lt;memoryBlockExpressionList context=&quot;Context string&quot;/>\r\n"/>
<intAttribute key="com.mounriver.debug.gdbjtag.openocd.gdbServerGdbPortNumber" value="3333"/> <intAttribute key="com.mounriver.debug.gdbjtag.openocd.gdbServerGdbPortNumber" value="3333"/>
<intAttribute key="com.mounriver.debug.gdbjtag.openocd.gdbServerTelnetPortNumber" value="4444"/> <intAttribute key="com.mounriver.debug.gdbjtag.openocd.gdbServerTelnetPortNumber" value="4444"/>
<intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.portNumber" value="3333"/> <intAttribute key="org.eclipse.cdt.debug.gdbjtag.core.portNumber" value="3333"/>
<intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/> <intAttribute key="org.eclipse.cdt.launch.ATTR_BUILD_BEFORE_LAUNCH_ATTR" value="2"/>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS"> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
<listEntry value="/JT-DT-YD4N02A_RTT_MRS-4G" /> <listEntry value="JT-DT-YD4N02A_RTT_MRS-4G"/>
</listAttribute> </listAttribute>
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES"> <listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
<listEntry value="4"/> <listEntry value="4"/>

View File

@ -8,9 +8,9 @@
"series": "CH32V307", "series": "CH32V307",
"rtos": "NoneOS", "rtos": "NoneOS",
"mcu": "CH32V307RVT6", "mcu": "CH32V307RVT6",
"description": "===========ROM(byte): 256K, SRAM(byte): 64K, CHIP PINS: 64, GPIO PORTS: 51.\\nWCH CH32V3 series of mainstream MCUs covers the needs of a large variety of applications in the industrial,medical and consumer markets. High performance with first-class peripherals and low-power,low-voltage operation is paired with a high level of integration at accessible prices with a simple architecture and easy-to-use tools.", "description": "============ROM(byte): 256K, SRAM(byte): 64K, CHIP PINS: 64, GPIO PORTS: 51.\\nWCH CH32V3 series of mainstream MCUs covers the needs of a large variety of applications in the industrial,medical and consumer markets. High performance with first-class peripherals and low-power,low-voltage operation is paired with a high level of integration at accessible prices with a simple architecture and easy-to-use tools.",
"link": "WCH-Link", "link": "WCH-Link",
"peripheral_version": "===========1.4" "peripheral_version": "============1.4"
}, },
"linkedFolders": [], "linkedFolders": [],
"removedResources": [ "removedResources": [

View File

@ -192,7 +192,6 @@ int main(void)
rt_uint32_t received_event; rt_uint32_t received_event;
BSP_ADC_Init(); BSP_ADC_Init();
BSP_VIN_Detection_Init();
if (Get_VIN_VoltageInt1000x() > 10000) if (Get_VIN_VoltageInt1000x() > 10000)
{ {
@ -243,6 +242,9 @@ int main(void)
RCC_ClearFlag(); RCC_ClearFlag();
NVIC_SystemReset(); // 直接重启系统 NVIC_SystemReset(); // 直接重启系统
} }
BSP_VIN_Detection_Init();
// IWDG_Feed();
while (1) while (1)
{ {
if (is_event_initialized) if (is_event_initialized)
@ -412,7 +414,9 @@ int main(void)
{ {
LOG_D("掉电模式"); LOG_D("掉电模式");
ADC_ITConfig(USED_ADC, ADC_IT_AWD, DISABLE); is_event_initialized = RT_FALSE;
// ADC_ITConfig(USED_ADC, ADC_IT_AWD, DISABLE);
H308_PWR_OFF; H308_PWR_OFF;
SysControl.last_status = SysControl.status; SysControl.last_status = SysControl.status;
@ -439,6 +443,7 @@ int main(void)
LOG_D("cnt2 = %d", cnt); LOG_D("cnt2 = %d", cnt);
cnt++; cnt++;
} }
__disable_irq(); // 关闭中断 __disable_irq(); // 关闭中断
NVIC_SystemReset(); // 直接重启系统 NVIC_SystemReset(); // 直接重启系统
@ -478,6 +483,7 @@ int main(void)
else else
{ {
rt_thread_mdelay(1000); rt_thread_mdelay(1000);
// IWDG_Feed();
} }
} }
} }

View File

@ -265,6 +265,7 @@ int BSP_SYS_Init(void)
BSP_BUTTON_Init(); BSP_BUTTON_Init();
BSP_HR_Init(); BSP_HR_Init();
BSP_Nt26k_Thread_Init(); BSP_Nt26k_Thread_Init();
return 0; return 0;
} }
// INIT_ENV_EXPORT(BSP_SYS_Init); // INIT_ENV_EXPORT(BSP_SYS_Init);

View File

@ -14,6 +14,8 @@
#include "rtdef.h" #include "rtdef.h"
#include "bsp_flash.h" #include "bsp_flash.h"
#define MAX_EXPIRATION_YEARS (10U) #define MAX_EXPIRATION_YEARS (10U)
#define MAX_EXPIRATION_DAYS (365 * MAX_EXPIRATION_YEARS + 30 * 3U) #define MAX_EXPIRATION_DAYS (365 * MAX_EXPIRATION_YEARS + 30 * 3U)

View File

@ -30,7 +30,7 @@
#define H308_RST_OFF rt_pin_write(H308_RST_PIN, PIN_HIGH) #define H308_RST_OFF rt_pin_write(H308_RST_PIN, PIN_HIGH)
#define H308_THREAD_STACK_SIZE (2048) #define H308_THREAD_STACK_SIZE (2048)
#define H308_THREAD_PRIORITY (8) #define H308_THREAD_PRIORITY (7)
#define H308_THREAD_TIMESLICE (5) #define H308_THREAD_TIMESLICE (5)
typedef enum typedef enum

View File

@ -2,8 +2,8 @@
* @Author : stark1898y 1658608470@qq.com * @Author : stark1898y 1658608470@qq.com
* @Date : 2024-09-13 13:11:09 * @Date : 2024-09-13 13:11:09
* @LastEditors : stark1898y 1658608470@qq.com * @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-09-24 11:21:59 * @LastEditTime : 2025-01-23 16:17:44
* @FilePath : \JT-DT-YD4N02A_RTT_MRS-4G\bsp\inc\bsp_vin_detection.h * @FilePath : \JT-DT-YD4N02A_4G_RTT_MRS\bsp\inc\bsp_vin_detection.h
* @Description : * @Description :
* *
* Copyright (c) 2024 by yzy, All Rights Reserved. * Copyright (c) 2024 by yzy, All Rights Reserved.
@ -13,9 +13,9 @@
#include "board.h" #include "board.h"
#if 0 #if 1
#define VIN_THREAD_STACK_SIZE (1024) #define VIN_THREAD_STACK_SIZE (1024)
#define VIN_THREAD_PRIORITY (1) #define VIN_THREAD_PRIORITY (5)
#define VIN_THREAD_TIMESLICE (5) #define VIN_THREAD_TIMESLICE (5)
#endif #endif

View File

@ -14,7 +14,7 @@
#include "board.h" #include "board.h"
#define WDG_THREAD_STACK_SIZE (1024U) #define WDG_THREAD_STACK_SIZE (1024U)
#define WDG_THREAD_PRIORITY 30 #define WDG_THREAD_PRIORITY 29
#define WDG_THREAD_TIMESLICE 5 #define WDG_THREAD_TIMESLICE 5
// 暂时只写了IWDG的 // 暂时只写了IWDG的

View File

@ -346,7 +346,7 @@ static void h308_thread_entry(void *param)
else if (ret == -RT_ETIMEOUT) // 这个主要是考虑传感器未焊接好或者脱落的情况国标要求30s内反应 3*5 = 15s符合国标 else if (ret == -RT_ETIMEOUT) // 这个主要是考虑传感器未焊接好或者脱落的情况国标要求30s内反应 3*5 = 15s符合国标
{ {
h308_rx_timout_cnt++; h308_rx_timout_cnt++;
if (h308_rx_timout_cnt >= 5) if (h308_rx_timout_cnt >= 6)
{ {
H308_RST_ON; H308_RST_ON;
rt_thread_mdelay(100); rt_thread_mdelay(100);

View File

@ -37,6 +37,7 @@ static void BSP_Led_thread_entry(void *param)
rt_thread_mdelay(1000); rt_thread_mdelay(1000);
} }
} }
int BSP_LED_Init(void) int BSP_LED_Init(void)
{ {
led_r = agile_led_create(LED_R_PIN, PIN_HIGH, "100,0", 0); led_r = agile_led_create(LED_R_PIN, PIN_HIGH, "100,0", 0);

View File

@ -21,15 +21,14 @@
#define LOG_LVL LOG_LVL_DBG // 该模块对应的日志输出级别。不定义时,默认:调试级别 #define LOG_LVL LOG_LVL_DBG // 该模块对应的日志输出级别。不定义时,默认:调试级别
#include <ulog.h> // 必须在 LOG_TAG 与 LOG_LVL 下面 #include <ulog.h> // 必须在 LOG_TAG 与 LOG_LVL 下面
#if 0 #if 1
static rt_sem_t sem_vin; // static rt_sem_t sem_vin;
ALIGN(RT_ALIGN_SIZE) ALIGN(RT_ALIGN_SIZE)
static char vin_thread_stack[VIN_THREAD_STACK_SIZE]; static char vin_thread_stack[VIN_THREAD_STACK_SIZE];
static struct rt_thread vin_thread; static struct rt_thread vin_thread;
#endif #endif
float Get_VIN_Voltage(void) float Get_VIN_Voltage(void)
{ {
float vin_voltage = Get_ADC_Voltage(kVinAdc) * VIN_VOLTAGE_RATIO; float vin_voltage = Get_ADC_Voltage(kVinAdc) * VIN_VOLTAGE_RATIO;
@ -49,20 +48,31 @@ uint16_t Get_VIN_VoltageInt1000x(void)
{ {
uint16_t voltage = (Get_ADC_Average(kVinAdc) * 3.3 / 4096) * VIN_VOLTAGE_RATIO * 1000; uint16_t voltage = (Get_ADC_Average(kVinAdc) * 3.3 / 4096) * VIN_VOLTAGE_RATIO * 1000;
LOG_D("Get_VIN_VoltageInt1000x = %04d", voltage); // LOG_D("Get_VIN_VoltageInt1000x = %04d", voltage);
return voltage; return voltage;
} }
#ifdef FINSH_USING_MSH #ifdef FINSH_USING_MSH
// MSH_CMD_EXPORT(Get_VIN_VoltageInt1000x, "Get_VIN_VoltageInt1000x"); // MSH_CMD_EXPORT(Get_VIN_VoltageInt1000x, "Get_VIN_VoltageInt1000x");
#endif // !FINSH_USING_MSH #endif // !FINSH_USING_MSH
#if 0 #if 1
static void vin_thread_entry(void *param) static void vin_thread_entry(void *param)
{ {
while (1) while (1)
{ {
rt_sem_take(sem_vin, RT_WAITING_FOREVER); // rt_sem_take(sem_vin, RT_WAITING_FOREVER);
// 写入掉电记录 // 写入掉电记录
if (Get_VIN_VoltageInt1000x() <= 10000)
{
if (SysControl.status != kPowerDownEvent)
{
LOG_D("电压低于10V");
Send_Laser_Alarm_Event(kPowerDownEvent);
}
}
rt_thread_mdelay(50);
#if 0
Flash_Write_Record(kRecordPowerDown); Flash_Write_Record(kRecordPowerDown);
LOG_D("Enter AnalogWatchdog Interrupt"); LOG_D("Enter AnalogWatchdog Interrupt");
@ -78,35 +88,38 @@ static void vin_thread_entry(void *param)
} }
// 还是没断电的话就重启 // 还是没断电的话就重启
NVIC_SystemReset(); NVIC_SystemReset();
#endif
} }
} }
#endif #endif
int BSP_VIN_Detection_Init(void) int BSP_VIN_Detection_Init(void)
{ {
NVIC_InitTypeDef NVIC_InitStructure = {0}; // NVIC_InitTypeDef NVIC_InitStructure = {0};
/* Higher Threshold: 14V, Lower Threshold: 10V */ // rt_thread_mdelay(100);
ADC_AnalogWatchdogThresholdsConfig(USED_ADC, VIN_ADC_HIGH_THRESHOLD, VIN_ADC_LOW_THRESHOLD);
ADC_AnalogWatchdogSingleChannelConfig(USED_ADC, VIN_ADC_CHANNEL);
ADC_AnalogWatchdogCmd(USED_ADC, ADC_AnalogWatchdog_SingleRegEnable);
NVIC_InitStructure.NVIC_IRQChannel = ADC1_2_IRQn; // /* Higher Threshold: 14V, Lower Threshold: 10V */
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0; // ADC_AnalogWatchdogThresholdsConfig(USED_ADC, VIN_ADC_HIGH_THRESHOLD, VIN_ADC_LOW_THRESHOLD);
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0; // ADC_AnalogWatchdogSingleChannelConfig(USED_ADC, VIN_ADC_CHANNEL);
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE; // ADC_AnalogWatchdogCmd(USED_ADC, ADC_AnalogWatchdog_SingleRegEnable);
NVIC_Init(&NVIC_InitStructure);
rt_thread_mdelay(50); // NVIC_InitStructure.NVIC_IRQChannel = ADC1_2_IRQn;
// NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
// NVIC_InitStructure.NVIC_IRQChannelSubPriority = 0;
// NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
// NVIC_Init(&NVIC_InitStructure);
ADC_ITConfig(USED_ADC, ADC_IT_AWD, ENABLE); // rt_thread_mdelay(50);
#if 0 // ADC_ITConfig(USED_ADC, ADC_IT_AWD, ENABLE);
sem_vin = rt_sem_create("sem_vin", 0, RT_IPC_FLAG_PRIO);
if (sem_vin == RT_NULL) #if 1
{ // sem_vin = rt_sem_create("sem_vin", 0, RT_IPC_FLAG_PRIO);
LOG_E("create sem_vin fail"); // if (sem_vin == RT_NULL)
} // {
// LOG_E("create sem_vin fail");
// }
rt_thread_init(&vin_thread, rt_thread_init(&vin_thread,
"vin_thread", "vin_thread",
@ -121,10 +134,11 @@ int BSP_VIN_Detection_Init(void)
return RT_EOK; return RT_EOK;
} }
#ifdef RT_USING_COMPONENTS_INIT // #ifdef RT_USING_COMPONENTS_INIT
// INIT_APP_EXPORT(BSP_VIN_Detection_Init); // INIT_APP_EXPORT(BSP_VIN_Detection_Init);
#endif // #endif
#if 0
void ADC1_2_IRQHandler(void) __attribute__((interrupt())); void ADC1_2_IRQHandler(void) __attribute__((interrupt()));
void ADC1_2_IRQHandler(void) void ADC1_2_IRQHandler(void)
{ {
@ -136,15 +150,14 @@ void ADC1_2_IRQHandler(void)
{ {
ADC_ClearITPendingBit(ADC1, ADC_IT_AWD); ADC_ClearITPendingBit(ADC1, ADC_IT_AWD);
// ADC_ITConfig(USED_ADC, ADC_IT_AWD, DISABLE);
LOG_D("Enter AnalogWatchdog Interrupt"); LOG_D("Enter AnalogWatchdog Interrupt");
Send_Laser_Alarm_Event(kPowerDownEvent); Send_Laser_Alarm_Event(kPowerDownEvent);
ADC_ITConfig(USED_ADC, ADC_IT_AWD, DISABLE);
} }
/* leave interrupt */ /* leave interrupt */
rt_interrupt_leave(); rt_interrupt_leave();
FREE_INT_SP(); FREE_INT_SP();
} }
#endif

View File

@ -532,7 +532,6 @@ int rt_hw_usart_init(void)
continue; continue;
} }
/* register UART device */ /* register UART device */
result = rt_hw_serial_register(&uart_obj[i].serial, uart_obj[i].config->name, result = rt_hw_serial_register(&uart_obj[i].serial, uart_obj[i].config->name,
RT_DEVICE_FLAG_RDWR RT_DEVICE_FLAG_RDWR

View File

@ -2,8 +2,8 @@
* @Author : stark1898y 1658608470@qq.com * @Author : stark1898y 1658608470@qq.com
* @Date : 2024-07-19 13:49:43 * @Date : 2024-07-19 13:49:43
* @LastEditors : stark1898y 1658608470@qq.com * @LastEditors : stark1898y 1658608470@qq.com
* @LastEditTime : 2024-09-19 14:25:52 * @LastEditTime : 2025-01-23 16:25:55
* @FilePath : \JT-DT-YD4N02A_RTT_MRS-4G\rt-thread\rtconfig.h * @FilePath : \JT-DT-YD4N02A_4G_RTT_MRS\rt-thread\rtconfig.h
* @Description : * @Description :
* *
* Copyright (c) 2024 by yzy, All Rights Reserved. * Copyright (c) 2024 by yzy, All Rights Reserved.
@ -15,7 +15,7 @@
/*使用动态日志及密码功能时,需开启宏 FINSH_USING_AUTH ULOG_USING_FILTER ENABLE_LOG_ALL ULOG_OUTPUT_LVL = 7 以及设置ulog.c 1522行 输出等级为0*/ /*使用动态日志及密码功能时,需开启宏 FINSH_USING_AUTH ULOG_USING_FILTER ENABLE_LOG_ALL ULOG_OUTPUT_LVL = 7 以及设置ulog.c 1522行 输出等级为0*/
/**/ /**/
// #define FINSH_USING_AUTH //开启终端密码登录功能 #define FINSH_USING_AUTH //开启终端密码登录功能
// #define ULOG_USING_FILTER //开启动态修改日志等级 默认修改在ulog.c 1522行 // #define ULOG_USING_FILTER //开启动态修改日志等级 默认修改在ulog.c 1522行
#define ENABLE_LOG_ALL #define ENABLE_LOG_ALL
@ -23,6 +23,11 @@
#define ULOG_OUTPUT_LVL 7 // 生产时将其设为0 #define ULOG_OUTPUT_LVL 7 // 生产时将其设为0
#define IOT_MODULE_SWITCH 1 //开启物联网功能 #define IOT_MODULE_SWITCH 1 //开启物联网功能
// #ifdef FINSH_USING_AUTH
// #define AT_USING_CLI
// #define AT_PRINT_RAW_CMD
// #endif
/* RT-Thread Kernel */ /* RT-Thread Kernel */
#define RT_NAME_MAX 16 #define RT_NAME_MAX 16
@ -37,8 +42,6 @@
#define RT_USING_IDLE_HOOK #define RT_USING_IDLE_HOOK
#define RT_IDLE_HOOK_LIST_SIZE 4 #define RT_IDLE_HOOK_LIST_SIZE 4
#define IDLE_THREAD_STACK_SIZE 512 #define IDLE_THREAD_STACK_SIZE 512
@ -156,10 +159,7 @@
#define AT_USING_CLIENT #define AT_USING_CLIENT
#define AT_CLIENT_NUM_MAX 1 #define AT_CLIENT_NUM_MAX 1
// #ifdef FINSH_USING_AUTH
#define AT_USING_CLI
#define AT_PRINT_RAW_CMD
// #endif
#define AT_CMD_MAX_LEN 256 #define AT_CMD_MAX_LEN 256
#define AT_SW_VERSION_NUM 0x10301 #define AT_SW_VERSION_NUM 0x10301