U-Boot DM(一):CMDLINE宏

一:U_BOOT_CMD

U_BOOT_CMD(
	demo,   4,      1,      do_demo,
	"Driver model (dm) demo operations",
	"list                     List available demo devices\n"
	"demo hello <num> [<char>]     Say hello\n"
	"demo light [<num>]            Set or get the lights\n"
	"demo status <num>             Get demo device status\n"
	"demo list                     List available demo devices"
);

U_BOOT_CMD宏展开过程中的一些定义:

#define U_BOOT_CMD(_name, _maxargs, _rep, _cmd, _usage, _help)		\
	U_BOOT_CMD_COMPLETE(_name, _maxargs, _rep, _cmd, _usage, _help, NULL)

#define U_BOOT_CMD_COMPLETE(_name, _maxargs, _rep, _cmd, _usage, _help, _comp) \
	ll_entry_declare(cmd_tbl_t, _name, cmd) =			\
		U_BOOT_CMD_MKENT_COMPLETE(_name, _maxargs, _rep, _cmd,	\
						_usage, _help, _comp);

#define

相关推荐

  1. U-Boot DM():CMDLINE

    2023-12-26 11:52:04       66 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-26 11:52:04       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-26 11:52:04       100 阅读
  3. 在Django里面运行非项目文件

    2023-12-26 11:52:04       82 阅读
  4. Python语言-面向对象

    2023-12-26 11:52:04       91 阅读

热门阅读

  1. 【Qt-容器类】

    2023-12-26 11:52:04       56 阅读
  2. CSS Grid 网格布局简要说明

    2023-12-26 11:52:04       59 阅读
  3. .NET环境中实现深度学习进行动物识别

    2023-12-26 11:52:04       69 阅读
  4. 前端---css 选择器

    2023-12-26 11:52:04       69 阅读
  5. 高效接口测试:Python自动化框架设计与实现

    2023-12-26 11:52:04       66 阅读
  6. es6中 ?? 与 || 区别

    2023-12-26 11:52:04       66 阅读
  7. 邦芒解析:拒绝加班邀请的8种理由

    2023-12-26 11:52:04       56 阅读
  8. 图像色彩还原算法

    2023-12-26 11:52:04       56 阅读
  9. MySQL中的like模糊查询

    2023-12-26 11:52:04       64 阅读