Lines Matching full:device
14 /* RT-Thread Device Interface */
80 * This function register a watchdog device
87 struct rt_device *device; in rt_hw_watchdog_register() local
90 device = &(wtd->parent); in rt_hw_watchdog_register()
92 device->type = RT_Device_Class_Miscellaneous; in rt_hw_watchdog_register()
93 device->rx_indicate = RT_NULL; in rt_hw_watchdog_register()
94 device->tx_complete = RT_NULL; in rt_hw_watchdog_register()
97 device->ops = &wdt_ops; in rt_hw_watchdog_register()
99 device->init = rt_watchdog_init; in rt_hw_watchdog_register()
100 device->open = rt_watchdog_open; in rt_hw_watchdog_register()
101 device->close = rt_watchdog_close; in rt_hw_watchdog_register()
102 device->read = RT_NULL; in rt_hw_watchdog_register()
103 device->write = RT_NULL; in rt_hw_watchdog_register()
104 device->control = rt_watchdog_control; in rt_hw_watchdog_register()
106 device->user_data = data; in rt_hw_watchdog_register()
108 /* register a character device */ in rt_hw_watchdog_register()
109 return rt_device_register(device, name, flag); in rt_hw_watchdog_register()