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

Function device_setup

components/lwp/terminal/tty_device.c:295–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293};
294
295rt_inline void device_setup(lwp_tty_t terminal)
296{
297 terminal->parent.type = RT_Device_Class_Char;
298#ifdef RT_USING_DEVICE_OPS
299 terminal->parent.ops = &tty_dev_ops;
300#else
301#error Must enable RT_USING_DEVICE_OPS in Kconfig
302#endif
303}
304
305/* register TTY device */
306rt_err_t lwp_tty_register(lwp_tty_t terminal, const char *name)

Callers 1

lwp_tty_registerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected