提交 5e9f525c 编写于 作者: mysterywolf's avatar mysterywolf 提交者: guo

[kernel] enable RT_DEBUG_DEVICE by default and move weak rt_hw_dealy_us in kservice.c

上级 d6c74af5
......@@ -11,15 +11,6 @@
#include <sys/types.h>
#include <rtthread.h>
#include <rthw.h>
#define DBG_TAG "POSIX.delay"
#define DBG_LVL DBG_INFO
#include <rtdbg.h>
RT_WEAK void rt_hw_us_delay(rt_uint32_t us)
{
(void) us;
LOG_W("Please consider implementing rt_hw_us_delay() in another file.");
}
void msleep(unsigned int msecs)
{
......
......@@ -53,7 +53,7 @@
#endif
#ifndef RT_DEBUG_DEVICE
#define RT_DEBUG_DEVICE 0
#define RT_DEBUG_DEVICE 1
#endif
#ifndef RT_DEBUG_INIT
......
......@@ -45,6 +45,13 @@ static volatile int __rt_errno;
static rt_device_t _console_device = RT_NULL;
#endif
RT_WEAK void rt_hw_us_delay(rt_uint32_t us)
{
(void) us;
RT_DEBUG_LOG(RT_DEBUG_DEVICE, ("rt_hw_us_delay() doesn't support for this board."
"Please consider implementing rt_hw_us_delay() in another file."));
}
/**
* This function gets the global errno for the current thread.
*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册