summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSummerGift <[email protected]>2020-03-23 15:35:27 +0800
committerSummerGift <[email protected]>2020-03-23 15:44:54 +0800
commite5c1183350966cd242093c626f2f2c3944122498 (patch)
treed6f0b384a0e867312e546536e6ebb7287c93cd55 /include
parent5ddb0d51c022f9b10028143de740fa5becf3739f (diff)
[optimize] stm32 uart driver
Diffstat (limited to 'include')
-rw-r--r--include/rtdef.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h
index 8b86213082..f2b546f75e 100644
--- a/include/rtdef.h
+++ b/include/rtdef.h
@@ -898,6 +898,7 @@ enum rt_device_class_type
#define RT_DEVICE_CTRL_RESUME 0x01 /**< resume device */
#define RT_DEVICE_CTRL_SUSPEND 0x02 /**< suspend device */
#define RT_DEVICE_CTRL_CONFIG 0x03 /**< configure device */
+#define RT_DEVICE_CTRL_CLOSE 0x04 /**< close device */
#define RT_DEVICE_CTRL_SET_INT 0x10 /**< set interrupt */
#define RT_DEVICE_CTRL_CLR_INT 0x11 /**< clear interrupt */