...
Anchor
Files
...
...
clk.h/clk.c
...
Prototype
HTML Tablecode | |||
---|---|---|---|
| |||
Table Row (tr) | |||
Table Cell (td) | |||
| |||
Anchor | 1063411 | 1063411 | void
|
void Clk_SignalClk (CLK_ERR *p_err); Table Row (tr) | Table Row (tr) | Table Row (tr) | |
...
...
Arguments
...
p_err
Pointer to variable that will receive the return error code from this function:
...
CLK_ERR_NONE
...
CLK_ERR_NOT_INIT
CLK_OS_ERR_SIGNAL
...
...
Returned Values
Anchor
Required Configuration
...
CLK_CFG_EXT_EN
is DEF_DISABLED
and CLK_CFG_SIGNAL_EN
is DEF_ENABLED
in clk_cfg.h
(see section 3-1-1 Module Configuration), this function must be periodically called by application/BSP functions in order to increment the internal clock ticker. CLK_CFG_SIGNAL_FREQ_HZ
must be configured to the number of times this function gets called every second.Notes / Warnings
...
Example Usage
Anchor | ||||
---|---|---|---|---|
|
...
class | Code_Listing |
---|
...
rowspan | 8 |
---|
...
|
Code Block | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||
CLK_ERR err; Anchor | | 1063435 | 1063435 | ||||||||||||||||||
Anchor | 1063436 | 1063436 | |||||||||||||||||||
Anchor | 1063437 | 1063437 | if|||||||||||||||||||
Anchor | 1063438 | 1063438 | printf(“Clock module timestamp tick signal error”);|||||||||||||||||||
Anchor | 1063439 | 1063439 | }|||||||||||||||||||
Table Row (tr) | |||||||||||||||||||||
Table Row (tr) | |||||||||||||||||||||
Table Row (tr) | |||||||||||||||||||||
Table Row (tr) | |||||||||||||||||||||
Table Row (tr) | |||||||||||||||||||||
Table Row (tr) |