Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
天中雨水
rt-thread
提交
5086bca1
R
rt-thread
项目概览
天中雨水
/
rt-thread
该项目与 Fork 源项目分叉
Fork自
RT-Thread / rt-thread
通知
2
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
5086bca1
编写于
4月 13, 2019
作者:
B
Bernard Xiong
提交者:
GitHub
4月 13, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #2568 from armink/fix_rtdbg
Fix rtdbg
上级
16e8f34e
fa4d4ab7
变更
64
显示空白变更内容
内联
并排
Showing
64 changed file
with
183 addition
and
174 deletion
+183
-174
bsp/allwinner_tina/drivers/drv_gpio.c
bsp/allwinner_tina/drivers/drv_gpio.c
+2
-2
bsp/allwinner_tina/drivers/drv_sdio.c
bsp/allwinner_tina/drivers/drv_sdio.c
+5
-5
bsp/allwinner_tina/drivers/spi/drv_spi.c
bsp/allwinner_tina/drivers/spi/drv_spi.c
+3
-3
bsp/allwinner_tina/drivers/spi/drv_spi_flash.c
bsp/allwinner_tina/drivers/spi/drv_spi_flash.c
+2
-2
bsp/amebaz/drivers/wlan/drv_wifi.c
bsp/amebaz/drivers/wlan/drv_wifi.c
+2
-2
bsp/imxrt/Libraries/imxrt1021/drivers/drv_eth.c
bsp/imxrt/Libraries/imxrt1021/drivers/drv_eth.c
+3
-4
bsp/imxrt/Libraries/imxrt1021/drivers/drv_flexspi_nor.c
bsp/imxrt/Libraries/imxrt1021/drivers/drv_flexspi_nor.c
+2
-2
bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth.c
bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth.c
+2
-2
bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth_fire.c
bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth_fire.c
+2
-2
bsp/imxrt/Libraries/imxrt1050/drivers/drv_flexspi_hyper.c
bsp/imxrt/Libraries/imxrt1050/drivers/drv_flexspi_hyper.c
+2
-2
bsp/imxrt/Libraries/imxrt1050/drivers/drv_flexspi_nor.c
bsp/imxrt/Libraries/imxrt1050/drivers/drv_flexspi_nor.c
+2
-2
bsp/k210/driver/drv_gpio.c
bsp/k210/driver/drv_gpio.c
+2
-2
bsp/k210/driver/drv_lcd.c
bsp/k210/driver/drv_lcd.c
+2
-4
bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.c
bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.c
+5
-5
bsp/qemu-vexpress-a9/drivers/drv_keyboard.c
bsp/qemu-vexpress-a9/drivers/drv_keyboard.c
+1
-1
bsp/qemu-vexpress-a9/drivers/drv_mouse.c
bsp/qemu-vexpress-a9/drivers/drv_mouse.c
+2
-2
bsp/qemu-vexpress-a9/drivers/drv_sdio.c
bsp/qemu-vexpress-a9/drivers/drv_sdio.c
+2
-2
bsp/stm32/libraries/HAL_Drivers/drv_log.h
bsp/stm32/libraries/HAL_Drivers/drv_log.h
+4
-4
bsp/stm32/stm32f103-fire-arbitrary/board/ports/sdcard_port.c
bsp/stm32/stm32f103-fire-arbitrary/board/ports/sdcard_port.c
+2
-2
bsp/stm32/stm32f407-atk-explorer/board/ports/sdcard_port.c
bsp/stm32/stm32f407-atk-explorer/board/ports/sdcard_port.c
+2
-2
bsp/stm32/stm32f429-armfly-v6/board/ports/sdcard_port.c
bsp/stm32/stm32f429-armfly-v6/board/ports/sdcard_port.c
+2
-2
bsp/stm32/stm32f429-atk-apollo/board/ports/sdcard_port.c
bsp/stm32/stm32f429-atk-apollo/board/ports/sdcard_port.c
+2
-2
bsp/stm32/stm32f429-fire-challenger/board/ports/sdcard_port.c
...stm32/stm32f429-fire-challenger/board/ports/sdcard_port.c
+2
-2
bsp/stm32/stm32f746-st-disco/board/ports/sdcard_port.c
bsp/stm32/stm32f746-st-disco/board/ports/sdcard_port.c
+2
-2
bsp/stm32/stm32f767-atk-apollo/board/ports/sdcard_port.c
bsp/stm32/stm32f767-atk-apollo/board/ports/sdcard_port.c
+2
-2
bsp/stm32/stm32f767-fire-challenger/board/ports/sdcard_port.c
...stm32/stm32f767-fire-challenger/board/ports/sdcard_port.c
+2
-3
bsp/stm32/stm32l475-atk-pandora/board/ports/sdcard_port.c
bsp/stm32/stm32l475-atk-pandora/board/ports/sdcard_port.c
+2
-3
bsp/stm32/stm32l496-ali-developer/board/ports/sdcard_port.c
bsp/stm32/stm32l496-ali-developer/board/ports/sdcard_port.c
+2
-3
bsp/stm32f429-apollo/drivers/audio/drv_mic.c
bsp/stm32f429-apollo/drivers/audio/drv_mic.c
+2
-2
bsp/stm32f429-apollo/drivers/audio/drv_sound.c
bsp/stm32f429-apollo/drivers/audio/drv_sound.c
+2
-2
bsp/w60x/drivers/drv_wifi.c
bsp/w60x/drivers/drv_wifi.c
+2
-4
bsp/x1000/drivers/mmc/drv_mmc.c
bsp/x1000/drivers/mmc/drv_mmc.c
+2
-2
components/dfs/include/dfs_private.h
components/dfs/include/dfs_private.h
+2
-2
components/drivers/misc/adc.c
components/drivers/misc/adc.c
+2
-2
components/drivers/sdio/block_dev.c
components/drivers/sdio/block_dev.c
+3
-3
components/drivers/sdio/mmc.c
components/drivers/sdio/mmc.c
+3
-3
components/drivers/sdio/mmcsd_core.c
components/drivers/sdio/mmcsd_core.c
+3
-3
components/drivers/sdio/sd.c
components/drivers/sdio/sd.c
+3
-3
components/drivers/sdio/sdio.c
components/drivers/sdio/sdio.c
+3
-3
components/drivers/sensors/sensor.c
components/drivers/sensors/sensor.c
+2
-2
components/drivers/sensors/sensor_cmd.c
components/drivers/sensors/sensor_cmd.c
+2
-2
components/drivers/serial/serial.c
components/drivers/serial/serial.c
+2
-2
components/drivers/wlan/wlan_cfg.c
components/drivers/wlan/wlan_cfg.c
+4
-4
components/drivers/wlan/wlan_dev.c
components/drivers/wlan/wlan_dev.c
+4
-4
components/drivers/wlan/wlan_lwip.c
components/drivers/wlan/wlan_lwip.c
+4
-4
components/drivers/wlan/wlan_mgnt.c
components/drivers/wlan/wlan_mgnt.c
+4
-5
components/drivers/wlan/wlan_prot.c
components/drivers/wlan/wlan_prot.c
+4
-4
components/drivers/wlan/wlan_workqueue.c
components/drivers/wlan/wlan_workqueue.c
+2
-2
components/libc/libdl/dlelf.c
components/libc/libdl/dlelf.c
+2
-2
components/libc/libdl/dlmodule.c
components/libc/libdl/dlmodule.c
+2
-2
components/lwp/lwp.c
components/lwp/lwp.c
+2
-2
components/lwp/lwp_mem.c
components/lwp/lwp_mem.c
+2
-2
components/lwp/lwp_syscall.c
components/lwp/lwp_syscall.c
+2
-2
components/net/at/include/at_log.h
components/net/at/include/at_log.h
+4
-4
components/net/sal_socket/src/sal_socket.c
components/net/sal_socket/src/sal_socket.c
+2
-2
components/utilities/ulog/ulog_def.h
components/utilities/ulog/ulog_def.h
+6
-2
components/utilities/utest/utest.c
components/utilities/utest/utest.c
+5
-5
components/utilities/utest/utest_log.h
components/utilities/utest/utest_log.h
+5
-5
examples/network/tcpclient.c
examples/network/tcpclient.c
+3
-3
examples/network/tcpserver.c
examples/network/tcpserver.c
+3
-3
examples/network/udpclient.c
examples/network/udpclient.c
+3
-3
examples/network/udpserver.c
examples/network/udpserver.c
+3
-3
include/rtdbg.h
include/rtdbg.h
+17
-3
src/signal.c
src/signal.c
+2
-2
未找到文件。
bsp/allwinner_tina/drivers/drv_gpio.c
浏览文件 @
5086bca1
...
...
@@ -27,8 +27,8 @@
#include "drv_gpio.h"
#include "interrupt.h"
#define DBG_
SECTION_NAME
"GPIO"
#define DBG_L
EVEL
DBG_WARNING
#define DBG_
TAG
"GPIO"
#define DBG_L
VL
DBG_WARNING
#include <rtdbg.h>
#define readl(addr) (*(volatile unsigned int *)(addr))
...
...
bsp/allwinner_tina/drivers/drv_sdio.c
浏览文件 @
5086bca1
...
...
@@ -33,11 +33,11 @@
#include "drv_clock.h"
#define DBG_
SECTION_NAME
"MMC"
// #define DBG_L
EVE
L DBG_LOG
// #define DBG_L
EVE
L DBG_INFO
#define DBG_L
EVE
L DBG_WARNING
// #define DBG_L
EVE
L DBG_ERROR
#define DBG_
TAG
"MMC"
// #define DBG_L
V
L DBG_LOG
// #define DBG_L
V
L DBG_INFO
#define DBG_L
V
L DBG_WARNING
// #define DBG_L
V
L DBG_ERROR
#include <rtdbg.h>
#ifdef RT_USING_SDIO
...
...
bsp/allwinner_tina/drivers/spi/drv_spi.c
浏览文件 @
5086bca1
...
...
@@ -35,11 +35,11 @@
//#define DEBUG
#define DBG_
SECTION_NAME
"SPI"
#define DBG_
TAG
"SPI"
#ifdef DEBUG
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_WARNING
#define DBG_L
VL
DBG_WARNING
#endif
/* DEBUG */
#include <rtdbg.h>
...
...
bsp/allwinner_tina/drivers/spi/drv_spi_flash.c
浏览文件 @
5086bca1
...
...
@@ -26,8 +26,8 @@
#include <rthw.h>
#include <rtdevice.h>
#define DBG_
SECTION_NAME
"FLASH"
#define DBG_L
EVEL
DBG_LOG
#define DBG_
TAG
"FLASH"
#define DBG_L
VL
DBG_LOG
#include <rtdbg.h>
#define SPI_FLASH_DEVICE_NAME "spi00"
...
...
bsp/amebaz/drivers/wlan/drv_wifi.c
浏览文件 @
5086bca1
...
...
@@ -28,8 +28,8 @@
#include "drv_wlan.h"
#include "drv_wifi.h"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
SECTION_NAME
"WIFI"
#define DBG_L
V
L DBG_INFO
#define DBG_
TAG
"WIFI"
#include <rtdbg.h>
#define MAX_ADDR_LEN (6)
...
...
bsp/imxrt/Libraries/imxrt1021/drivers/drv_eth.c
浏览文件 @
5086bca1
...
...
@@ -40,10 +40,9 @@
//#define ETH_RX_DUMP
//#define ETH_TX_DUMP
#define DBG_ENABLE
#define DBG_SECTION_NAME "ETH"
#define DBG_COLOR
#define DBG_LEVEL DBG_INFO
#define DBG_TAG "ETH"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
#define MAX_ADDR_LEN 6
...
...
bsp/imxrt/Libraries/imxrt1021/drivers/drv_flexspi_nor.c
浏览文件 @
5086bca1
...
...
@@ -14,8 +14,8 @@
#include <rthw.h>
#include "drv_flexspi.h"
#define DBG_
SECTION_NAME
"FLEXSPI"
#define DBG_L
EVEL
DBG_LOG
#define DBG_
TAG
"FLEXSPI"
#define DBG_L
VL
DBG_LOG
#include <rtdbg.h>
#define FLEXSPI_CLOCK kCLOCK_FlexSpi
...
...
bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth.c
浏览文件 @
5086bca1
...
...
@@ -46,8 +46,8 @@
//#define ETH_RX_DUMP
//#define ETH_TX_DUMP
#define DBG_
SECTION_NAME
"ETH"
#define DBG_L
EVEL
DBG_INFO
#define DBG_
TAG
"ETH"
#define DBG_L
VL
DBG_INFO
#include <rtdbg.h>
#define MAX_ADDR_LEN 6
...
...
bsp/imxrt/Libraries/imxrt1050/drivers/drv_eth_fire.c
浏览文件 @
5086bca1
...
...
@@ -37,8 +37,8 @@
//#define ETH_RX_DUMP
//#define ETH_TX_DUMP
#define DBG_
SECTION_NAME
"ETH"
#define DBG_L
EVEL
DBG_LOG
#define DBG_
TAG
"ETH"
#define DBG_L
VL
DBG_LOG
#include <rtdbg.h>
#define MAX_ADDR_LEN 6
...
...
bsp/imxrt/Libraries/imxrt1050/drivers/drv_flexspi_hyper.c
浏览文件 @
5086bca1
...
...
@@ -14,8 +14,8 @@
#include <rthw.h>
#include "drv_flexspi.h"
#define DBG_
SECTION_NAME
"Hyper"
#define DBG_L
EVEL
DBG_LOG
#define DBG_
TAG
"Hyper"
#define DBG_L
VL
DBG_LOG
#include <rtdbg.h>
#define FLEXSPI_CLOCK kCLOCK_FlexSpi
...
...
bsp/imxrt/Libraries/imxrt1050/drivers/drv_flexspi_nor.c
浏览文件 @
5086bca1
...
...
@@ -13,8 +13,8 @@
#include <rthw.h>
#include "drv_flexspi.h"
#define DBG_
SECTION_NAME
"FLEXSPI"
#define DBG_L
EVEL
DBG_LOG
#define DBG_
TAG
"FLEXSPI"
#define DBG_L
VL
DBG_LOG
#include <rtdbg.h>
#define FLEXSPI_CLOCK kCLOCK_FlexSpi
...
...
bsp/k210/driver/drv_gpio.c
浏览文件 @
5086bca1
...
...
@@ -20,8 +20,8 @@
#include <string.h>
#define DBG_ENABLE
#define DBG_
SECTION_NAME
"PIN"
#define DBG_L
EVEL
DBG_WARNING
#define DBG_
TAG
"PIN"
#define DBG_L
VL
DBG_WARNING
#define DBG_COLOR
#include <rtdbg.h>
...
...
bsp/k210/driver/drv_lcd.c
浏览文件 @
5086bca1
...
...
@@ -21,10 +21,8 @@
#include <drv_io_config.h>
#include <rthw.h>
#define DBG_ENABLE
#define DBG_SECTION_NAME "LCD"
#define DBG_LEVEL DBG_WARNING
#define DBG_COLOR
#define DBG_TAG "LCD"
#define DBG_LVL DBG_WARNING
#include <rtdbg.h>
#define NO_OPERATION 0x00
...
...
bsp/qemu-vexpress-a9/drivers/audio/drv_pl041.c
浏览文件 @
5086bca1
...
...
@@ -28,11 +28,11 @@
#include "drv_ac97.h"
#include "realview.h"
#define DBG_
SECTION_NAME
"PL041"
// #define DBG_L
EVE
L DBG_LOG
// #define DBG_L
EVE
L DBG_INFO
#define DBG_L
EVEL
DBG_WARNING
// #define DBG_L
EVE
L DBG_ERROR
#define DBG_
TAG
"PL041"
// #define DBG_L
V
L DBG_LOG
// #define DBG_L
V
L DBG_INFO
#define DBG_L
VL
DBG_WARNING
// #define DBG_L
V
L DBG_ERROR
#include <rtdbg.h>
#define FRAME_PERIOD_US (50)
...
...
bsp/qemu-vexpress-a9/drivers/drv_keyboard.c
浏览文件 @
5086bca1
...
...
@@ -6,7 +6,7 @@
#include "interrupt.h"
#include "drv_keyboard.h"
#define DBG_L
EVE
L DBG_INFO
#define DBG_L
V
L DBG_INFO
#include "rtdbg.h"
#define KEYBOARD_ADDRESS (0x10006000)
...
...
bsp/qemu-vexpress-a9/drivers/drv_mouse.c
浏览文件 @
5086bca1
...
...
@@ -7,8 +7,8 @@
#include "drv_mouse.h"
#include "drv_clcd.h"
#define DBG_
SECTION_NAME
"drv.mouse"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"drv.mouse"
#define DBG_L
V
L DBG_INFO
#include "rtdbg.h"
#define MOUSE_ADDRESS (0x10007000)
...
...
bsp/qemu-vexpress-a9/drivers/drv_sdio.c
浏览文件 @
5086bca1
...
...
@@ -77,8 +77,8 @@
#define PL180_CLR_DAT_END (1 << 8)
#define PL180_CLR_DAT_BLK_END (1 << 10)
#define DBG_
SECTION_NAME
"drv.sdio"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"drv.sdio"
#define DBG_L
V
L DBG_INFO
#include "rtdbg.h"
struct
sdhci_pl180_pdata_t
...
...
bsp/stm32/libraries/HAL_Drivers/drv_log.h
浏览文件 @
5086bca1
...
...
@@ -13,15 +13,15 @@
*/
#ifndef LOG_TAG
#define DBG_
SECTION_NAME
"drv"
#define DBG_
TAG
"drv"
#else
#define DBG_
SECTION_NAME
LOG_TAG
#define DBG_
TAG
LOG_TAG
#endif
/* LOG_TAG */
#ifdef DRV_DEBUG
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
#define DBG_L
VL
DBG_INFO
#endif
/* DRV_DEBUG */
#include <rtdbg.h>
bsp/stm32/stm32f103-fire-arbitrary/board/ports/sdcard_port.c
浏览文件 @
5086bca1
...
...
@@ -16,8 +16,8 @@
#include <dfs_fs.h>
#include <dfs_posix.h>
#define DBG_
SECTION_NAME
"app.card"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"app.card"
#define DBG_L
V
L DBG_INFO
#include <rtdbg.h>
void
sd_mount
(
void
*
parameter
)
...
...
bsp/stm32/stm32f407-atk-explorer/board/ports/sdcard_port.c
浏览文件 @
5086bca1
...
...
@@ -16,8 +16,8 @@
#include <dfs_fs.h>
#include <dfs_posix.h>
#define DBG_
SECTION_NAME
"app.card"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"app.card"
#define DBG_L
V
L DBG_INFO
#include <rtdbg.h>
void
sd_mount
(
void
*
parameter
)
...
...
bsp/stm32/stm32f429-armfly-v6/board/ports/sdcard_port.c
浏览文件 @
5086bca1
...
...
@@ -16,8 +16,8 @@
#include <dfs_fs.h>
#include <dfs_posix.h>
#define DBG_
SECTION_NAME
"app.card"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"app.card"
#define DBG_L
V
L DBG_INFO
#include <rtdbg.h>
void
sd_mount
(
void
*
parameter
)
...
...
bsp/stm32/stm32f429-atk-apollo/board/ports/sdcard_port.c
浏览文件 @
5086bca1
...
...
@@ -16,8 +16,8 @@
#include <dfs_fs.h>
#include <dfs_posix.h>
#define DBG_
SECTION_NAME
"app.card"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"app.card"
#define DBG_L
V
L DBG_INFO
#include <rtdbg.h>
void
sd_mount
(
void
*
parameter
)
...
...
bsp/stm32/stm32f429-fire-challenger/board/ports/sdcard_port.c
浏览文件 @
5086bca1
...
...
@@ -17,8 +17,8 @@
#include <dfs_posix.h>
#include "drv_gpio.h"
#define DBG_
SECTION_NAME
"app.card"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"app.card"
#define DBG_L
V
L DBG_INFO
#include <rtdbg.h>
#define WIFI_RESET_PIN GET_PIN(G, 9)
...
...
bsp/stm32/stm32f746-st-disco/board/ports/sdcard_port.c
浏览文件 @
5086bca1
...
...
@@ -16,8 +16,8 @@
#include <dfs_fs.h>
#include <dfs_posix.h>
#define DBG_
SECTION_NAME
"app.card"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"app.card"
#define DBG_L
V
L DBG_INFO
#include <rtdbg.h>
void
sd_mount
(
void
*
parameter
)
...
...
bsp/stm32/stm32f767-atk-apollo/board/ports/sdcard_port.c
浏览文件 @
5086bca1
...
...
@@ -16,8 +16,8 @@
#include <dfs_fs.h>
#include <dfs_posix.h>
#define DBG_
SECTION_NAME
"app.card"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"app.card"
#define DBG_L
V
L DBG_INFO
#include <rtdbg.h>
void
sd_mount
(
void
*
parameter
)
...
...
bsp/stm32/stm32f767-fire-challenger/board/ports/sdcard_port.c
浏览文件 @
5086bca1
...
...
@@ -17,9 +17,8 @@
#include <dfs_posix.h>
#include "drv_gpio.h"
#define DBG_SECTION_NAME "app.card"
#define DBG_LEVEL DBG_INFO
#define DBG_TAG "app.card"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
#define WIFI_RESET_PIN GET_PIN(G, 9)
...
...
bsp/stm32/stm32l475-atk-pandora/board/ports/sdcard_port.c
浏览文件 @
5086bca1
...
...
@@ -18,9 +18,8 @@
#include "drv_spi.h"
#include "spi_msd.h"
#define DBG_SECTION_NAME "app.card"
#define DBG_LEVEL DBG_INFO
#define DBG_TAG "app.card"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
void
sd_mount
(
void
*
parameter
)
...
...
bsp/stm32/stm32l496-ali-developer/board/ports/sdcard_port.c
浏览文件 @
5086bca1
...
...
@@ -16,9 +16,8 @@
#include <dfs_fs.h>
#include <dfs_posix.h>
#define DBG_SECTION_NAME "app.card"
#define DBG_LEVEL DBG_INFO
#define DBG_TAG "app.card"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
void
sd_mount
(
void
*
parameter
)
...
...
bsp/stm32f429-apollo/drivers/audio/drv_mic.c
浏览文件 @
5086bca1
...
...
@@ -18,8 +18,8 @@
#include "drv_wm8978.h"
#include <stm32f4xx.h>
#define DBG_
LEVEL DBG_INFO
#define DBG_
SECTION_NAME "MIC"
#define DBG_
TAG "MIC"
#define DBG_
LVL DBG_INFO
#include <rtdbg.h>
struct
micphone_device
...
...
bsp/stm32f429-apollo/drivers/audio/drv_sound.c
浏览文件 @
5086bca1
...
...
@@ -19,8 +19,8 @@
#include "drv_wm8978.h"
#include <stm32f4xx.h>
#define DBG_
LEVEL DBG_LOG
#define DBG_
SECTION_NAME "Sound"
#define DBG_
TAG "Sound"
#define DBG_
LVL DBG_LOG
#include <rtdbg.h>
/**
...
...
bsp/w60x/drivers/drv_wifi.c
浏览文件 @
5086bca1
...
...
@@ -14,10 +14,8 @@
#include "wm_wifi.h"
#include "drv_wifi.h"
#define DBG_ENABLE
#define DBG_LEVEL DBG_INFO
#define DBG_SECTION_NAME "WIFI"
#define DBG_COLOR
#define DBG_TAG "WIFI"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
#include "wm_ram_config.h"
...
...
bsp/x1000/drivers/mmc/drv_mmc.c
浏览文件 @
5086bca1
...
...
@@ -33,8 +33,8 @@
#define DMA_ALIGN (32U)
#define PIO_THRESHOLD 64
/* use pio mode if data length < PIO_THRESHOLD */
#define DBG_
SECTION_NAME
"SDIO"
#define DBG_L
EVEL
DBG_INFO
#define DBG_
TAG
"SDIO"
#define DBG_L
VL
DBG_INFO
#include <rtdbg.h>
/*
...
...
components/dfs/include/dfs_private.h
浏览文件 @
5086bca1
...
...
@@ -12,8 +12,8 @@
#include <dfs.h>
#define DBG_
SECTION_NAME
"DFS"
#define DBG_L
EVEL
DBG_INFO
#define DBG_
TAG
"DFS"
#define DBG_L
VL
DBG_INFO
#include <rtdbg.h>
#define NO_WORKING_DIR "system does not support working directory\n"
...
...
components/drivers/misc/adc.c
浏览文件 @
5086bca1
...
...
@@ -15,8 +15,8 @@
#include <string.h>
#include <stdlib.h>
#define DBG_
SECTION_NAME
"adc"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"adc"
#define DBG_L
V
L DBG_INFO
#include <rtdbg.h>
static
rt_size_t
_adc_read
(
rt_device_t
dev
,
rt_off_t
pos
,
void
*
buffer
,
rt_size_t
size
)
...
...
components/drivers/sdio/block_dev.c
浏览文件 @
5086bca1
...
...
@@ -13,11 +13,11 @@
#include <drivers/mmcsd_core.h>
#define DBG_
SECTION_NAME
"SDIO"
#define DBG_
TAG
"SDIO"
#ifdef RT_SDIO_DEBUG
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
#define DBG_L
VL
DBG_INFO
#endif
/* RT_SDIO_DEBUG */
#include <rtdbg.h>
...
...
components/drivers/sdio/mmc.c
浏览文件 @
5086bca1
...
...
@@ -11,11 +11,11 @@
#include <drivers/mmcsd_core.h>
#include <drivers/mmc.h>
#define DBG_
SECTION_NAME
"SDIO"
#define DBG_
TAG
"SDIO"
#ifdef RT_SDIO_DEBUG
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
#define DBG_L
VL
DBG_INFO
#endif
/* RT_SDIO_DEBUG */
#include <rtdbg.h>
...
...
components/drivers/sdio/mmcsd_core.c
浏览文件 @
5086bca1
...
...
@@ -14,11 +14,11 @@
#include <drivers/mmc.h>
#include <drivers/sdio.h>
#define DBG_
SECTION_NAME
"SDIO"
#define DBG_
TAG
"SDIO"
#ifdef RT_SDIO_DEBUG
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
#define DBG_L
VL
DBG_INFO
#endif
/* RT_SDIO_DEBUG */
#include <rtdbg.h>
...
...
components/drivers/sdio/sd.c
浏览文件 @
5086bca1
...
...
@@ -11,11 +11,11 @@
#include <drivers/mmcsd_core.h>
#include <drivers/sd.h>
#define DBG_
SECTION_NAME
"SDIO"
#define DBG_
TAG
"SDIO"
#ifdef RT_SDIO_DEBUG
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
#define DBG_L
VL
DBG_INFO
#endif
/* RT_SDIO_DEBUG */
#include <rtdbg.h>
...
...
components/drivers/sdio/sdio.c
浏览文件 @
5086bca1
...
...
@@ -12,11 +12,11 @@
#include <drivers/sdio.h>
#include <drivers/sd.h>
#define DBG_
SECTION_NAME
"SDIO"
#define DBG_
TAG
"SDIO"
#ifdef RT_SDIO_DEBUG
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
#define DBG_L
VL
DBG_INFO
#endif
/* RT_SDIO_DEBUG */
#include <rtdbg.h>
...
...
components/drivers/sensors/sensor.c
浏览文件 @
5086bca1
...
...
@@ -10,8 +10,8 @@
#include "sensor.h"
#define DBG_
LEVEL DBG_INFO
#define DBG_
SECTION_NAME "sensor"
#define DBG_
TAG "sensor"
#define DBG_
LVL DBG_INFO
#include <rtdbg.h>
#include <string.h>
...
...
components/drivers/sensors/sensor_cmd.c
浏览文件 @
5086bca1
...
...
@@ -10,8 +10,8 @@
#include "sensor.h"
#define DBG_
LEVEL DBG_INFO
#define DBG_
SECTION_NAME "sensor.cmd"
#define DBG_
TAG "sensor.cmd"
#define DBG_
LVL DBG_INFO
#include <rtdbg.h>
#include <stdlib.h>
...
...
components/drivers/serial/serial.c
浏览文件 @
5086bca1
...
...
@@ -28,8 +28,8 @@
#include <rtthread.h>
#include <rtdevice.h>
#define DBG_
LEVEL DBG_INFO
#define DBG_
SECTION_NAME "UART"
#define DBG_
TAG "UART"
#define DBG_
LVL DBG_INFO
#include <rtdbg.h>
#ifdef RT_USING_POSIX
...
...
components/drivers/wlan/wlan_cfg.c
浏览文件 @
5086bca1
...
...
@@ -11,12 +11,12 @@
#include <rtthread.h>
#include <wlan_cfg.h>
#define DBG_TAG "WLAN.cfg"
#ifdef RT_WLAN_CFG_DEBUG
#define DBG_L
EVE
L DBG_LOG
#define DBG_L
V
L DBG_LOG
#else
#define DBG_LEVEL DBG_INFO
#endif
#define DBG_SECTION_NAME "WLAN.cfg"
#define DBG_LVL DBG_INFO
#endif
/* RT_WLAN_CFG_DEBUG */
#include <rtdbg.h>
#define WLAN_CFG_LOCK() (rt_mutex_take(&cfg_mutex, RT_WAITING_FOREVER))
...
...
components/drivers/wlan/wlan_dev.c
浏览文件 @
5086bca1
...
...
@@ -13,12 +13,12 @@
#include <wlan_dev.h>
#include <wlan_prot.h>
#define DBG_TAG "WLAN.dev"
#ifdef RT_WLAN_DEV_DEBUG
#define DBG_L
EVE
L DBG_LOG
#define DBG_L
V
L DBG_LOG
#else
#define DBG_LEVEL DBG_INFO
#endif
#define DBG_SECTION_NAME "WLAN.dev"
#define DBG_LVL DBG_INFO
#endif
/* RT_WLAN_DEV_DEBUG */
#include <rtdbg.h>
#ifndef RT_DEVICE
...
...
components/drivers/wlan/wlan_lwip.c
浏览文件 @
5086bca1
...
...
@@ -21,12 +21,12 @@
#include <dhcp_server.h>
#endif
#define DBG_TAG "WLAN.lwip"
#ifdef RT_WLAN_LWIP_DEBUG
#define DBG_L
EVE
L DBG_LOG
#define DBG_L
V
L DBG_LOG
#else
#define DBG_LEVEL DBG_INFO
#endif
#define DBG_SECTION_NAME "WLAN.lwip"
#define DBG_LVL DBG_INFO
#endif
/* RT_WLAN_LWIP_DEBUG */
#include <rtdbg.h>
#ifndef IPADDR_STRLEN_MAX
...
...
components/drivers/wlan/wlan_mgnt.c
浏览文件 @
5086bca1
...
...
@@ -16,13 +16,12 @@
#include <wlan_prot.h>
#include <wlan_workqueue.h>
#define DBG_TAG "WLAN.mgnt"
#ifdef RT_WLAN_MGNT_DEBUG
#define DBG_L
EVE
L DBG_LOG
#define DBG_L
V
L DBG_LOG
#else
#define DBG_LEVEL DBG_INFO
#endif
#define DBG_SECTION_NAME "WLAN.mgnt"
#define DBG_LVL DBG_INFO
#endif
/* RT_WLAN_MGNT_DEBUG */
#include <rtdbg.h>
#ifndef RT_WLAN_DEVICE
...
...
components/drivers/wlan/wlan_prot.c
浏览文件 @
5086bca1
...
...
@@ -13,12 +13,12 @@
#include <wlan_dev.h>
#include <wlan_prot.h>
#define DBG_TAG "WLAN.prot"
#ifdef RT_WLAN_PROT_DEBUG
#define DBG_L
EVE
L DBG_LOG
#define DBG_L
V
L DBG_LOG
#else
#define DBG_LEVEL DBG_INFO
#endif
#define DBG_SECTION_NAME "WLAN.prot"
#define DBG_LVL DBG_INFO
#endif
/* RT_WLAN_PROT_DEBUG */
#include <rtdbg.h>
#if RT_WLAN_PROT_NAME_LEN < 4
...
...
components/drivers/wlan/wlan_workqueue.c
浏览文件 @
5086bca1
...
...
@@ -13,8 +13,8 @@
#include <wlan_workqueue.h>
#include <ipc/workqueue.h>
#define DBG_
LEVEL DBG_INFO
#define DBG_
SECTION_NAME "WLAN.work"
#define DBG_
TAG "WLAN.work"
#define DBG_
LVL DBG_INFO
#include <rtdbg.h>
struct
rt_wlan_work
...
...
components/libc/libdl/dlelf.c
浏览文件 @
5086bca1
...
...
@@ -11,8 +11,8 @@
#include "dlmodule.h"
#include "dlelf.h"
#define DBG_
SECTION_NAME
"DLMD"
#define DBG_L
EVEL
DBG_INFO
#define DBG_
TAG
"DLMD"
#define DBG_L
VL
DBG_INFO
#include <rtdbg.h> // must after of DEBUG_ENABLE or some other options
rt_err_t
dlmodule_load_shared_object
(
struct
rt_dlmodule
*
module
,
void
*
module_ptr
)
...
...
components/libc/libdl/dlmodule.c
浏览文件 @
5086bca1
...
...
@@ -16,8 +16,8 @@
#include <dfs_posix.h>
#define DBG_
SECTION_NAME
"DLMD"
#define DBG_L
EVEL
DBG_INFO
#define DBG_
TAG
"DLMD"
#define DBG_L
VL
DBG_INFO
#include <rtdbg.h> // must after of DEBUG_ENABLE or some other options
static
struct
rt_module_symtab
*
_rt_module_symtab_begin
=
RT_NULL
;
...
...
components/lwp/lwp.c
浏览文件 @
5086bca1
...
...
@@ -19,8 +19,8 @@
#include "lwp.h"
#define DBG_
SECTION_NAME
"LWP"
#define DBG_L
EVEL
DBG_WARNING
#define DBG_
TAG
"LWP"
#define DBG_L
VL
DBG_WARNING
#include <rtdbg.h>
extern
void
lwp_user_entry
(
void
*
args
,
const
void
*
text
,
void
*
data
);
...
...
components/lwp/lwp_mem.c
浏览文件 @
5086bca1
...
...
@@ -11,8 +11,8 @@
#include <rtthread.h>
#include <lwp.h>
#define DBG_
SECTION_NAME
"LWPMEM"
#define DBG_L
EVEL
DBG_WARNING
#define DBG_
TAG
"LWPMEM"
#define DBG_L
VL
DBG_WARNING
#include <rtdbg.h>
// todo: remove repleat code
...
...
components/lwp/lwp_syscall.c
浏览文件 @
5086bca1
...
...
@@ -24,8 +24,8 @@
#define SYSCALL_NET(f) ((void*)sys_notimpl)
#endif
#define DBG_
SECTION_NAME
"LWP_CALL"
#define DBG_L
EVE
L DBG_WARNING
#define DBG_
TAG
"LWP_CALL"
#define DBG_L
V
L DBG_WARNING
#include <rtdbg.h>
static
void
__exit_files
(
rt_thread_t
tid
)
...
...
components/net/at/include/at_log.h
浏览文件 @
5086bca1
...
...
@@ -13,15 +13,15 @@
*/
#ifndef LOG_TAG
#define DBG_
SECTION_NAME
"at"
#define DBG_
TAG
"at"
#else
#define DBG_
SECTION_NAME
LOG_TAG
#define DBG_
TAG
LOG_TAG
#endif
/* LOG_TAG */
#ifdef AT_DEBUG
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
#define DBG_L
VL
DBG_INFO
#endif
/* AT_DEBUG */
#include <rtdbg.h>
components/net/sal_socket/src/sal_socket.c
浏览文件 @
5086bca1
...
...
@@ -19,8 +19,8 @@
#endif
#include <sal.h>
#define DBG_
SECTION_NAME
"SAL_SKT"
#define DBG_L
EVEL
DBG_INFO
#define DBG_
TAG
"SAL_SKT"
#define DBG_L
VL
DBG_INFO
#include <rtdbg.h>
#define SOCKET_TABLE_STEP_LEN 4
...
...
components/utilities/ulog/ulog_def.h
浏览文件 @
5086bca1
...
...
@@ -54,7 +54,9 @@ extern "C" {
#if !defined(LOG_TAG)
/* compatible for rtdbg */
#if defined(DBG_SECTION_NAME)
#if defined(DBG_TAG)
#define LOG_TAG DBG_TAG
#elif defined(DBG_SECTION_NAME)
#define LOG_TAG DBG_SECTION_NAME
#else
#define LOG_TAG "NO_TAG"
...
...
@@ -63,7 +65,9 @@ extern "C" {
#if !defined(LOG_LVL)
/* compatible for rtdbg */
#if defined(DBG_LEVEL)
#if defined(DBG_LVL)
#define LOG_LVL DBG_LVL
#elif defined(DBG_LEVEL)
#define LOG_LVL DBG_LEVEL
#else
#define LOG_LVL LOG_LVL_DBG
...
...
components/utilities/utest/utest.c
浏览文件 @
5086bca1
...
...
@@ -15,14 +15,14 @@
#include "utest.h"
#include <utest_log.h>
#undef DBG_
SECTION_NAME
#undef DBG_L
EVE
L
#undef DBG_
TAG
#undef DBG_L
V
L
#define DBG_
SECTION_NAME
"utest"
#define DBG_
TAG
"utest"
#ifdef UTEST_DEBUG
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
#define DBG_L
VL
DBG_INFO
#endif
#include <rtdbg.h>
...
...
components/utilities/utest/utest_log.h
浏览文件 @
5086bca1
...
...
@@ -15,14 +15,14 @@
#define UTEST_DEBUG
#undef DBG_
SECTION_NAME
#undef DBG_L
EVE
L
#undef DBG_
TAG
#undef DBG_L
V
L
#define DBG_
SECTION_NAME
"testcase"
#define DBG_
TAG
"testcase"
#ifdef UTEST_DEBUG
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
#define DBG_L
VL
DBG_INFO
#endif
#include <rtdbg.h>
...
...
examples/network/tcpclient.c
浏览文件 @
5086bca1
...
...
@@ -12,11 +12,11 @@
#define DEBUG_TCP_CLIENT
#define DBG_
SECTION_NAME
"TCP"
#define DBG_
TAG
"TCP"
#ifdef DEBUG_TCP_CLIENT
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
/* DBG_ERROR */
#define DBG_L
VL
DBG_INFO
/* DBG_ERROR */
#endif
#include <rtdbg.h>
...
...
examples/network/tcpserver.c
浏览文件 @
5086bca1
...
...
@@ -12,11 +12,11 @@
#define DEBUG_TCP_SERVER
#define DBG_
SECTION_NAME
"TCP"
#define DBG_
TAG
"TCP"
#ifdef DEBUG_TCP_SERVER
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
/* DBG_ERROR */
#define DBG_L
VL
DBG_INFO
/* DBG_ERROR */
#endif
#include <rtdbg.h>
...
...
examples/network/udpclient.c
浏览文件 @
5086bca1
...
...
@@ -5,11 +5,11 @@
#define DEBUG_UDP_CLIENT
#define DBG_
SECTION_NAME
"UDP"
#define DBG_
TAG
"UDP"
#ifdef DEBUG_UDP_CLIENT
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
/* DBG_ERROR */
#define DBG_L
VL
DBG_INFO
/* DBG_ERROR */
#endif
#include <rtdbg.h>
...
...
examples/network/udpserver.c
浏览文件 @
5086bca1
...
...
@@ -12,11 +12,11 @@
#define DEBUG_UDP_SERVER
#define DBG_
SECTION_NAME
"UDP"
#define DBG_
TAG
"UDP"
#ifdef DEBUG_UDP_SERVER
#define DBG_L
EVEL
DBG_LOG
#define DBG_L
VL
DBG_LOG
#else
#define DBG_L
EVEL
DBG_INFO
/* DBG_ERROR */
#define DBG_L
VL
DBG_INFO
/* DBG_ERROR */
#endif
#include <rtdbg.h>
...
...
include/rtdbg.h
浏览文件 @
5086bca1
...
...
@@ -18,9 +18,9 @@
* In your C/C++ file, enable/disable DEBUG_ENABLE macro, and then include this
* header file.
*
* #define DBG_
SECTION_NAME "MOD
"
* #define DBG_L
EVE
L DBG_INFO
* #include <rtdbg.h> // must after of DBG_L
EVEL, DBG_SECTION_NAME
or other options
* #define DBG_
TAG "MOD_TAG
"
* #define DBG_L
V
L DBG_INFO
* #include <rtdbg.h> // must after of DBG_L
VL, DBG_TAG
or other options
*
* Then in your C/C++ file, you can use LOG_X macro to print out logs:
* LOG_D("this is a debug log!");
...
...
@@ -53,15 +53,29 @@
#define DBG_INFO 2
#define DBG_LOG 3
#ifdef DBG_TAG
#ifndef DBG_SECTION_NAME
#define DBG_SECTION_NAME DBG_TAG
#endif
#else
/* compatible with old version */
#ifndef DBG_SECTION_NAME
#define DBG_SECTION_NAME "DBG"
#endif
#endif
/* DBG_TAG */
#ifdef DBG_ENABLE
#ifdef DBG_LVL
#ifndef DBG_LEVEL
#define DBG_LEVEL DBG_LVL
#endif
#else
/* compatible with old version */
#ifndef DBG_LEVEL
#define DBG_LEVEL DBG_WARNING
#endif
#endif
/* DBG_LVL */
/*
* The color for terminal (foreground)
...
...
src/signal.c
浏览文件 @
5086bca1
...
...
@@ -22,8 +22,8 @@
#define RT_SIG_INFO_MAX 32
#endif
#define DBG_
SECTION_NAME
"SIGN"
#define DBG_L
EVE
L DBG_INFO
#define DBG_
TAG
"SIGN"
#define DBG_L
V
L DBG_INFO
#include <rtdbg.h>
#define sig_mask(sig_no) (1u << sig_no)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录