summaryrefslogtreecommitdiff
path: root/components/drivers/include
diff options
context:
space:
mode:
authorzms123456 <[email protected]>2024-02-29 22:27:38 +0800
committerGitHub <[email protected]>2024-02-29 22:27:38 +0800
commit6b5058ba5c084f14846fd127e33552c0d44916b9 (patch)
tree55bf99ee7d41bf9afcfbe69324b5b6d5ed659bce /components/drivers/include
parent97c5edf947b0c1b02ad39fd5bedb1853a9140c2d (diff)
[components/drivers]update hwtimer (#8565)
Diffstat (limited to 'components/drivers/include')
-rw-r--r--components/drivers/include/drivers/hwtimer.h4
-rw-r--r--components/drivers/include/rtdevice.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/components/drivers/include/drivers/hwtimer.h b/components/drivers/include/drivers/hwtimer.h
index 5676765d60..6f11ff2c54 100644
--- a/components/drivers/include/drivers/hwtimer.h
+++ b/components/drivers/include/drivers/hwtimer.h
@@ -78,6 +78,10 @@ typedef struct rt_hwtimer_device
rt_err_t rt_device_hwtimer_register(rt_hwtimer_t *timer, const char *name, void *user_data);
void rt_device_hwtimer_isr(rt_hwtimer_t *timer);
+#ifdef RT_USING_DM
+extern void (*rt_device_hwtimer_us_delay)(rt_uint32_t us);
+#endif
+
#ifdef __cplusplus
}
#endif
diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h
index a48269af42..5da3c955d6 100644
--- a/components/drivers/include/rtdevice.h
+++ b/components/drivers/include/rtdevice.h
@@ -183,6 +183,7 @@ extern "C" {
#ifdef RT_USING_DM
#include "drivers/core/dm.h"
+#include "drivers/platform.h"
#ifdef RT_USING_OFW
#include "drivers/ofw.h"