diff options
| author | wusongjie <[email protected]> | 2023-07-04 13:41:03 +0800 |
|---|---|---|
| committer | wusongjie <[email protected]> | 2023-07-04 13:55:07 +0800 |
| commit | 179157f4e198ded6ca92841226b7b4317a180b9a (patch) | |
| tree | d78d2094f6a79b346657dfef5f1239a4b545bb4d /components/drivers/include/rtdevice.h | |
| parent | b60d0cf3707ad42bd8615c0d3f4dbdb92b605fa8 (diff) | |
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 <[email protected]>
Diffstat (limited to 'components/drivers/include/rtdevice.h')
| -rw-r--r-- | components/drivers/include/rtdevice.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
