Versions Compared

Key

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

...

Anchor10634051063405 Clk_SignalClk() Anchor10634061063406Signal the clock task when one second has elapsed in order to increment the Clock module’s tick counter. Anchor10634071063407

Files

...

...

clk.h/clk.c

...

Prototype

void tr
HTML Tablecode
classCode_Listing
Table Row (tr)
Table Cell (td)
rowspan5
Anchor
10634111063411
languagecpp
void  Clk_SignalClk (CLK_ERR  *p_err);
Table Row (tr)
Table Row (tr)
Table Row (tr)

...


...

Arguments

...

1063422p_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

Anchor10634261063426None. Anchor10658961065896

Required Configuration

...

1065968When 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. Anchor10634301063430

Notes / Warnings

...

1063431None.

Example Usage

Anchor
10634541063454Listing - Clk_SignalClk() Example Usage

...

classCode_Listing

...

rowspan8

...

Listing - Clk_SignalClk() Example Usage

 
  err;
 
Clk_SignalClk(&err);
if

if (err != CLK_ERR_NONE)
{ printf(“Clock module timestamp tick signal error”); }tr
 {
    printf("Clock module timestamp tick signal error");
}
Code Block
languagecpp
titleListing - Clk_SignalClk() Example Usage
linenumberstrue
CLK_ERR
err;
Anchor
10634351063435
Anchor
10634361063436
Anchor
10634371063437
Anchor
10634381063438
Anchor
10634391063439
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)
Table Row (tr)