ClkCmd_Init

Build a valid Unix epoch date/time structure.

Files

clk_cmd.h/clk_cmd.c

Prototype

void  ClkCmd_Init(CLK_CMD_ERR  *p_err);


Arguments

p_err

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


CLK_CMD_ERR_NONE 
CLK_CMD_ERR_SHELL_INIT

Returned Values

None.

Notes / Warnings

None.

Example Usage

Listing - ClkCmd_Init() Example Usage
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.");
}