60 Star 428 Fork 192

Nrush / nr_micro_shell

 / 详情

可以添加这个对IAR的支持

待办的
创建于  
2024-03-12 13:15

#if defined(__CC_ARM) || defined(__CLANG_ARM) /* ARM Compiler /
#define NR_SECTION(x) attribute((section(x)))
#define NR_USED attribute((used))
#elif defined (IAR_SYSTEMS_ICC) /
for IAR Compiler */
#define NR_SECTION(x) @ x
#define NR_USED __root
#endif

#define NR_SHELL_CMD_EXPORT_START(cmd, func)
NR_USED const static_cmd_st nr_cmd_start NR_SECTION(".rodata.nr_shell_cmd0.end") = {#cmd, NULL}
#define NR_SHELL_CMD_EXPORT(cmd, func)
NR_USED const static_cmd_st nr_cmd##cmd NR_SECTION(".rodata.nr_shell_cmd1") = {#cmd, func}
#define NR_SHELL_CMD_EXPORT_END(cmd, func)
NR_USED const static_cmd_st nr_cmd_end NR_SECTION(".rodata.nr_shell_cmd1.end") = {#cmd, NULL}

评论 (0)

吴华彬 创建了任务

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(1)
C
1
https://gitee.com/nrush/nr_micro_shell.git
git@gitee.com:nrush/nr_micro_shell.git
nrush
nr_micro_shell
nr_micro_shell

搜索帮助