File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- /**
2- * @file shell_symbols.c
3- * @brief 为非嵌入式平台的letter_shell提供链接器符号
4- *
5- * 在嵌入式系统中,这些符号通常由链接脚本提供。
6- * 在Windows/Linux上进行测试时,我们需要显式定义它们。
7- */
1+ // / **
2+ // * @file shell_symbols.c
3+ // * @brief 为非嵌入式平台的letter_shell提供链接器符号
4+ // *
5+ // * 在嵌入式系统中,这些符号通常由链接脚本提供。
6+ // * 在Windows/Linux上进行测试时,我们需要显式定义它们。
7+ // */
88
9- #include "../L2_Core/third_party/letter_shell/inc/shell.h"
9+ // #include "../L2_Core/third_party/letter_shell/inc/shell.h"
1010
11- /* 为测试定义空的命令和变量段 */
12- #if defined(__GNUC__ ) && !defined(__ARMCC_VERSION )
11+ // / * 为测试定义空的命令和变量段 */
12+ // #if defined(__GNUC__) && !defined(__ARMCC_VERSION)
1313
14- /* 为Windows/Linux上的GCC提供通常由链接脚本提供的符号 */
15- const unsigned int _shell_command_start __attribute__((weak )) = 0 ;
16- const unsigned int _shell_command_end __attribute__((weak )) = 0 ;
14+ // / * 为Windows/Linux上的GCC提供通常由链接脚本提供的符号 */
15+ // const unsigned int _shell_command_start __attribute__((weak)) = 0;
16+ // const unsigned int _shell_command_end __attribute__((weak)) = 0;
1717
18- # if SHELL_USING_VAR == 1
19- const unsigned int _shell_variable_start __attribute__((weak )) = 0 ;
20- const unsigned int _shell_variable_end __attribute__((weak )) = 0 ;
21- # endif
18+ // # if SHELL_USING_VAR == 1
19+ // const unsigned int _shell_variable_start __attribute__((weak)) = 0;
20+ // const unsigned int _shell_variable_end __attribute__((weak)) = 0;
21+ // # endif
2222
23- #endif
23+ // #endif
You can’t perform that action at this time.
0 commit comments