diff options
Diffstat (limited to 'include/rtdef.h')
| -rw-r--r-- | include/rtdef.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rtdef.h b/include/rtdef.h index 027440fc48..24d4bc8f02 100644 --- a/include/rtdef.h +++ b/include/rtdef.h @@ -528,7 +528,7 @@ enum rt_device_class_type RT_Device_Class_Block, /* block device */ RT_Device_Class_NetIf, /* net interface */ RT_Device_Class_MTD, /* memory device */ - RT_Device_Class_CAN, /* CAN device */
+ RT_Device_Class_CAN, /* CAN device */ RT_Device_Class_RTC, /* RTC device */ RT_Device_Class_Unknown /* unknown device */ }; @@ -566,9 +566,9 @@ enum rt_device_class_type #define RT_DEVICE_CTRL_BLK_GETGEOME 0x10 /* get geometry information */ #define RT_DEVICE_CTRL_NETIF_GETMAC 0x10 /* get mac address */ #define RT_DEVICE_CTRL_MTD_FORMAT 0x10 /* format a MTD device */ -#define RT_DEVICE_CTRL_RTC_GET_TIME 0x10 /* get time */
+#define RT_DEVICE_CTRL_RTC_GET_TIME 0x10 /* get time */ #define RT_DEVICE_CTRL_RTC_SET_TIME 0x11 /* set time */ -
+ typedef struct rt_device* rt_device_t; /* * Device related structure |
