Versions Compared

Key

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

...

clk_cmd.h/clk_cmd.c

Prototype

Code Block
languagecpp
void  ClkCmd_Init(CLK_CMD_ERR  *p_err);


Arguments

p_err

Pointer to an error code which will be returned to your application:

...

None.

Notes / Warnings

None.

Example Usage

Anchor
Listing - ClkCmd_Init() Example Usage
Listing - ClkCmd_Init() Example Usage

Code Block
languagecpp
titleListing - ClkCmd_Init() Example Usage
linenumberstrue
CPU_BOOLEAN  success;
CLK_CMD_ERR  clk_cmd_err;
 
success = Shell_Init();
if (success == DEF_FAIL) {
    return;
}
  
ClkCmd_Init(&clk_cmd_err);
if (clk_cmd_err != CLK_CMD_ERR_NONE) {
    printf("ClkCmd module successfully initialized.");
} else {
    printf("ClkCmd module initialization error.");
}