From 179157f4e198ded6ca92841226b7b4317a180b9a Mon Sep 17 00:00:00 2001 From: wusongjie Date: Tue, 4 Jul 2023 13:41:03 +0800 Subject: Components/drivers: support DM device id management We add the device name and id set api in DM, now driver could set name like sprintf without know how many devices it is. The misc.h and byteorder.h add some macros to developers that they always use in drivers. Signed-off-by: GuEe-GUI --- components/drivers/include/rtdevice.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'components/drivers/include/rtdevice.h') diff --git a/components/drivers/include/rtdevice.h b/components/drivers/include/rtdevice.h index afce028b0e..60da08f8b1 100644 --- a/components/drivers/include/rtdevice.h +++ b/components/drivers/include/rtdevice.h @@ -169,6 +169,10 @@ extern "C" { #include "drivers/lcd.h" #endif +#ifdef RT_USING_DM +#include "drivers/core/rtdm.h" +#endif /* RT_USING_DM */ + #ifdef __cplusplus } #endif -- cgit v1.3.1