mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
[debug] 整理debug宏并增加RT_DEBUGING_CONTEXT (#7805)
This commit is contained in:
@@ -385,7 +385,7 @@ PSOC6 BSP 的制作规范主要分为 3 个方面:工程配置,ENV 配置和
|
||||
#### 4.1.2 ENV 配置
|
||||
|
||||
- 系统心跳统一设置为 1000(宏:RT_TICK_PER_SECOND)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_DEBUG)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_USING_DEBUG)
|
||||
- 系统空闲线程栈大小统一设置为 256(宏:IDLE_THREAD_STACK_SIZE)
|
||||
- 开启组件自动初始化(宏:RT_USING_COMPONENTS_INIT)
|
||||
- 需要开启 user main 选项(宏:RT_USING_USER_MAIN)
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ extern int __bss_end__;
|
||||
/* External function prototypes ----------------------------------------------*/
|
||||
/* Private function prototypes -----------------------------------------------*/
|
||||
/* Private functions ---------------------------------------------------------*/
|
||||
#ifdef RT_DEBUG
|
||||
#ifdef RT_USING_DEBUG
|
||||
/***************************************************************************//**
|
||||
* @brief
|
||||
* Reports the name of the source file and the source line number where the
|
||||
|
||||
@@ -790,7 +790,7 @@ GD32 BSP 的制作规范主要分为 3 个方面:工程配置,ENV 配置和
|
||||
#### 4.1.2 ENV 配置
|
||||
|
||||
- 系统心跳统一设置为 1000(宏:RT_TICK_PER_SECOND)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_DEBUG)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_USING_DEBUG)
|
||||
- 系统空闲线程栈大小统一设置为 256(宏:IDLE_THREAD_STACK_SIZE)
|
||||
- 开启组件自动初始化(宏:RT_USING_COMPONENTS_INIT)
|
||||
- 需要开启 user main 选项(宏:RT_USING_USER_MAIN)
|
||||
|
||||
@@ -594,7 +594,7 @@ GD32 BSP 的制作规范主要分为 3 个方面:工程配置,ENV 配置和
|
||||
#### 4.1.2 ENV 配置
|
||||
|
||||
- 系统心跳统一设置为 1000(宏:RT_TICK_PER_SECOND)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_DEBUG)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_USING_DEBUG)
|
||||
- 系统空闲线程栈大小统一设置为 256(宏:IDLE_THREAD_STACK_SIZE)
|
||||
- 开启组件自动初始化(宏:RT_USING_COMPONENTS_INIT)
|
||||
- 需要开启 user main 选项(宏:RT_USING_USER_MAIN)
|
||||
|
||||
@@ -237,7 +237,7 @@ i.MX RT BSP 的制作规范主要分为 3 个方面:工程配置,ENV 配置
|
||||
#### ENV 配置
|
||||
|
||||
- 系统心跳统一设置为 1000(宏:RT_TICK_PER_SECOND)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_DEBUG)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_USING_DEBUG)
|
||||
- 系统空闲线程栈大小统一设置为 256(宏:IDLE_THREAD_STACK_SIZE)
|
||||
- 开启组件自动初始化(宏:RT_USING_COMPONENTS_INIT)
|
||||
- 需要开启 user main 选项(宏:RT_USING_USER_MAIN)
|
||||
|
||||
@@ -238,7 +238,7 @@ LPC BSP 的制作规范主要分为 3 个方面:工程配置,ENV 配置和 I
|
||||
#### ENV 配置
|
||||
|
||||
- 系统心跳统一设置为 100(宏:RT_TICK_PER_SECOND)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_DEBUG)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_USING_DEBUG)
|
||||
- 系统空闲线程栈大小统一设置为 256(宏:IDLE_THREAD_STACK_SIZE)
|
||||
- 开启组件自动初始化(宏:RT_USING_COMPONENTS_INIT)
|
||||
- 需要开启 user main 选项(宏:RT_USING_USER_MAIN)
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#define RT_KSERVICE_USING_STDLIB
|
||||
#define RT_KPRINTF_USING_LONGLONG
|
||||
#define RT_DEBUG
|
||||
#define RT_USING_DEBUG
|
||||
|
||||
/* Inter-Thread communication */
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#define RT_KSERVICE_USING_STDLIB
|
||||
#define RT_KPRINTF_USING_LONGLONG
|
||||
#define RT_DEBUG
|
||||
#define RT_USING_DEBUG
|
||||
|
||||
/* Inter-Thread communication */
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#define RT_KSERVICE_USING_STDLIB
|
||||
#define RT_KPRINTF_USING_LONGLONG
|
||||
#define RT_DEBUG
|
||||
#define RT_USING_DEBUG
|
||||
|
||||
/* Inter-Thread communication */
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#define RT_KSERVICE_USING_STDLIB
|
||||
#define RT_KPRINTF_USING_LONGLONG
|
||||
#define RT_DEBUG
|
||||
#define RT_USING_DEBUG
|
||||
|
||||
/* Inter-Thread communication */
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#define RT_KSERVICE_USING_STDLIB
|
||||
#define RT_KPRINTF_USING_LONGLONG
|
||||
#define RT_DEBUG
|
||||
#define RT_USING_DEBUG
|
||||
|
||||
/* Inter-Thread communication */
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#define RT_KSERVICE_USING_STDLIB
|
||||
#define RT_KPRINTF_USING_LONGLONG
|
||||
#define RT_DEBUG
|
||||
#define RT_USING_DEBUG
|
||||
|
||||
/* Inter-Thread communication */
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#define RT_KSERVICE_USING_STDLIB
|
||||
#define RT_KPRINTF_USING_LONGLONG
|
||||
#define RT_DEBUG
|
||||
#define RT_USING_DEBUG
|
||||
|
||||
/* Inter-Thread communication */
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
|
||||
#define RT_KSERVICE_USING_STDLIB
|
||||
#define RT_KPRINTF_USING_LONGLONG
|
||||
#define RT_DEBUG
|
||||
#define RT_USING_DEBUG
|
||||
|
||||
/* Inter-Thread communication */
|
||||
|
||||
|
||||
@@ -362,7 +362,7 @@ The guidelines consist of project configuration, ENV configuration, and IDE conf
|
||||
#### 4.1.2 ENV Configuration
|
||||
|
||||
- The system tick is set as 1000 (The macro: RT_TICK_PER_SECOND)
|
||||
- Enable asserting in Debug options (The macro: RT_DEBUG)
|
||||
- Enable asserting in Debug options (The macro: RT_USING_DEBUG)
|
||||
- The stack size of the system idle thread is set to be 256 (The macro: IDLE_THREAD_STACK_SIZE)
|
||||
- Enable component auto initialization (The macro: RT_USING_COMPONENTS_INIT)
|
||||
- Enable the `user main` option (The macro: RT_USING_USER_MAIN)
|
||||
|
||||
@@ -367,7 +367,7 @@ RA 的制作规范主要分为 3 个方面:工程配置,ENV 配置和 IDE
|
||||
#### 4.1.2 ENV 配置
|
||||
|
||||
- 系统心跳统一设置为 1000(宏:RT_TICK_PER_SECOND)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_DEBUG)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_USING_DEBUG)
|
||||
- 系统空闲线程栈大小统一设置为 256(宏:IDLE_THREAD_STACK_SIZE)
|
||||
- 开启组件自动初始化(宏:RT_USING_COMPONENTS_INIT)
|
||||
- 需要开启 user main 选项(宏:RT_USING_USER_MAIN)
|
||||
|
||||
@@ -217,7 +217,7 @@ The specifications of making STM32 BSP are mainly divided into three aspects: en
|
||||
#### 4.1.2 ENV configuration
|
||||
|
||||
- The system heartbeat is uniformly set to 1000 (Macro: RT_TICK_PER_SECOND)
|
||||
- The assertion in the debugging option needs to be turned on in the BSP (macro: RT_DEBUG)
|
||||
- The assertion in the debugging option needs to be turned on in the BSP (macro: RT_USING_DEBUG)
|
||||
- The system idle thread stack size is uniformly set to 256 (Macro: IDLE_THREAD_STACK_SIZE)
|
||||
- Turn on automatic component initialization (Macro: RT_USING_COMPONENTS_INIT)
|
||||
- Need to enable the user main option (Macro: RT_USING_USER_MAIN)
|
||||
|
||||
@@ -265,7 +265,7 @@ STM32 BSP 的制作规范主要分为 3 个方面:工程配置,ENV 配置和
|
||||
#### 4.1.2 ENV 配置
|
||||
|
||||
- 系统心跳统一设置为 1000(宏:RT_TICK_PER_SECOND)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_DEBUG)
|
||||
- BSP 中需要打开调试选项中的断言(宏:RT_USING_DEBUG)
|
||||
- 系统空闲线程栈大小统一设置为 256(宏:IDLE_THREAD_STACK_SIZE)
|
||||
- 开启组件自动初始化(宏:RT_USING_COMPONENTS_INIT)
|
||||
- 需要开启 user main 选项(宏:RT_USING_USER_MAIN)
|
||||
|
||||
Reference in New Issue
Block a user