summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorguozhanxin <[email protected]>2022-03-29 20:50:38 +0800
committerguozhanxin <[email protected]>2022-03-29 20:50:38 +0800
commitf9245ef6fbcf2288309820930d473db39ef95cfa (patch)
treed81b381046152b9bf5fc373a8130c10cadc8b5d4 /include
parent61f1f698ec60db75d314b3782800514c706d7980 (diff)
parenta4a5ec0232ad32b70fed704b2a71803849e610f4 (diff)
Merge branch 'master' of https://github.com/RT-Thread/rt-thread
Diffstat (limited to 'include')
-rw-r--r--include/rtdebug.h4
-rw-r--r--include/rthw.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/include/rtdebug.h b/include/rtdebug.h
index 55d46171a2..9fdb4ab910 100644
--- a/include/rtdebug.h
+++ b/include/rtdebug.h
@@ -52,6 +52,10 @@
#define RT_DEBUG_IPC 0
#endif
+#ifndef RT_DEBUG_DEVICE
+#define RT_DEBUG_DEVICE 0
+#endif
+
#ifndef RT_DEBUG_INIT
#define RT_DEBUG_INIT 0
#endif
diff --git a/include/rthw.h b/include/rthw.h
index 5672a8f992..bf497b4c3f 100644
--- a/include/rthw.h
+++ b/include/rthw.h
@@ -26,6 +26,9 @@ extern "C" {
/*
* Some macros define
*/
+#ifndef HWREG64
+#define HWREG64(x) (*((volatile rt_uint64_t *)(x)))
+#endif
#ifndef HWREG32
#define HWREG32(x) (*((volatile rt_uint32_t *)(x)))
#endif