From f2b9ad69141fa156f23748b660c4ddbdd0a92fed Mon Sep 17 00:00:00 2001 From: ljy <1134570045@qq.com> Date: Fri, 8 Jul 2022 14:27:19 +0800 Subject: [PATCH] modify rtdef.h --- include/rtdef.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/rtdef.h b/include/rtdef.h index 556c644f94..34c3b9b9ca 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -1043,6 +1043,14 @@ enum rt_device_class_type #define RT_DEVICE_CTRL_GET_INT 0x08 /**< get interrupt status */ #define RT_DEVICE_CTRL_MASK 0x1f /**< mask for contrl commands */ +#ifdef RT_USING_LWP +#define RT_DEVICE_CTRL_IOREMAP 0x13 /**< user device ioremap */ +#define RT_DEVICE_CTRL_IOUNREMAP 0x14 /**< user device unioremap */ +#define RT_DEVICE_CTRL_SET_INT_HANDLER 0x15 /**< user device interrupt install */ +#define RT_DEVICE_CTRL_INT_UNMASK 0x16 /**< user device unmask interrupt */ +#define RT_DEVICE_CTRL_CREATE 0x17 +#endif + /** * special device commands */ -- Gitee