...
clk_cmd.h/clk_cmd.c
Prototype
Code Block |
---|
|
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 |
---|
language | cpp |
---|
title | Listing - ClkCmd_Init() Example Usage |
---|
linenumbers | true |
---|
|
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.");
} |