diff options
| author | Bernard Xiong <[email protected]> | 2015-03-31 07:02:05 +0000 |
|---|---|---|
| committer | Bernard Xiong <[email protected]> | 2015-03-31 07:02:05 +0000 |
| commit | 81c4f431099980f0db697218a63b2954153cea6c (patch) | |
| tree | 02bd42bab337c109d86d516d611fe266aa465713 /include | |
| parent | ad1f42d31af1e69065ca0319c37d96394a54b393 (diff) | |
| parent | 40db28cfeca76f4d4dc398741012284a498e963c (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include')
| -rw-r--r-- | include/rtdef.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 78a5642058..4c3581b91a 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -776,6 +776,11 @@ enum rt_device_class_type #define RT_DEVICE_FLAG_SUSPENDED 0x020 /**< device is suspended */ #define RT_DEVICE_FLAG_STREAM 0x040 /**< stream mode */ +#define RT_DEVICE_CTRL_CONFIG 0x03 /* configure device */ +#define RT_DEVICE_CTRL_SET_INT 0x10 /* enable receive irq */ +#define RT_DEVICE_CTRL_CLR_INT 0x11 /* disable receive irq */ +#define RT_DEVICE_CTRL_GET_INT 0x12 + #define RT_DEVICE_FLAG_INT_RX 0x100 /**< INT mode on Rx */ #define RT_DEVICE_FLAG_DMA_RX 0x200 /**< DMA mode on Rx */ #define RT_DEVICE_FLAG_INT_TX 0x400 /**< INT mode on Tx */ |
