Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To use shell commands, four files, in addition to the clk module, must be included in the build:

  • Micirum/Software/uC-Clk/Cmd/clk_cmd.c
  • Micirum/Software/uC-Clk/Cmd/clk_cmd.h
  • Micrium/Software/uC-Shell/Source/shell.c
  • Micrium/Software/uC-Shell/Source/shell.h

The file  clk_cmd.h  and shell.h must also be #included in any application or header files initialize µC/Shell or handle shell commands. The following directories must be on the project include path:

  • Micrium/Software/uC-Clk/CmdMicrium/Software/uC-Shell
µC/Shell with the µC/Clk shell commands is initialized in Listing - Initializing µC/Shell. The clk module initialization (Clk_Init()) function should have previously been called.
Code Block
languagecpp
titleInitializing µC/Shell
linenumberstrue
 

Refer to ClkCmd_Init() API for an usage example.