| 72 | #endif |
| 73 | |
| 74 | rt_inline void device_setup(rt_device_t ctty) |
| 75 | { |
| 76 | ctty->type = RT_Device_Class_Char; |
| 77 | #ifdef RT_USING_DEVICE_OPS |
| 78 | ctty->ops = &tty_dev_ops; |
| 79 | #else |
| 80 | #error Must enable RT_USING_DEVICE_OPS in Kconfig |
| 81 | #endif |
| 82 | } |
| 83 | |
| 84 | /* register device to DFS */ |
| 85 | static int lwp_ctty_register(rt_device_t ctty) |