MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / device_setup

Function device_setup

components/lwp/terminal/tty_ctty.c:74–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72#endif
73
74rt_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 */
85static int lwp_ctty_register(rt_device_t ctty)

Callers 1

lwp_ctty_registerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected