11#ifndef __SERIAL_DM_H__
12#define __SERIAL_DM_H__
16#include <posix/string.h>
23#define serial_for_each_args(arg, args) \
24 for (char *context = (arg = (typeof(arg))args, (void *)RT_NULL), \
25 *context_end = strchrnul((char *)args, ' '); \
26 (arg = strtok_r(arg, ",", &context)) && arg < context_end; \
void * serial_base_from_args(char *str)
struct serial_configure serial_cfg_from_args(char *str)
int serial_dev_set_name(struct rt_serial_device *sdev)