#include "femtoos_code.h"
Include dependency graph for code_TestHooks.c:
Go to the source code of this file.
Functions | |
void | appBoot (void) |
Prototype for the general initialization. | |
void | appTick00 (void) |
Tick hook called every tick. | |
void | appTick08 (void) |
Tick hook called every tick block (256 ticks). | |
void | appTick16 (void) |
Tick hook called every tick rollover (65536 ticks). | |
void | appLoop_Select (void) |
Variables | |
Tuint08 | uiCounter |
Tuint08 | uiSelector |
void appBoot | ( | void | ) |
Prototype for the general initialization.
This example is made to demonstrate how the tick hooks can be used. There are three tick hooks present. One on every tick, one on every tick block (256 ticks) and one on every rollover (65536 ticks). They all are coupled to a counter and with one switch you can switch between the different hooks. The counter is display on the ledport. (PORTA on the ATtiny861)
Definition at line 44 of file code_TestHooks.c.
void appLoop_Select | ( | void | ) |
Definition at line 75 of file code_TestHooks.c.
References genTraceByteInfo, taskDelayFromNow(), Tuint08, and uiSelector.
Here is the call graph for this function:
void appTick00 | ( | void | ) |
Tick hook called every tick.
Keep code inside really short! API calls inside are not allowed, even the genXXX are not allowed. The tick counter may not be valid when called. This call is executed inside OS realm. In case of low power down, missed ticks are not catched up.
Definition at line 58 of file code_TestHooks.c.
Referenced by privIncrementTick().
Here is the caller graph for this function:
void appTick08 | ( | void | ) |
Tick hook called every tick block (256 ticks).
Keep code inside short. API calls inside are not allowed, even the genXXX are not allowed. The tick counter may not be valid when called. This call is executed inside OS realm. In case of low power down, missed ticks are not catched up.
Definition at line 62 of file code_TestHooks.c.
Referenced by privIncrementTick().
Here is the caller graph for this function:
void appTick16 | ( | void | ) |
Tick hook called every tick rollover (65536 ticks).
Keep code inside short. API calls inside are not allowed, even the genXXX are not allowed. The tick counter may not be valid when called. This call is executed inside OS realm. In case of low power down, missed ticks are catched up, but may be deferred.
Definition at line 66 of file code_TestHooks.c.
References uiCounter, and uiSelector.
Tuint08 uiCounter |
Definition at line 50 of file code_TestHooks.c.
Referenced by appTick00(), appTick08(), and appTick16().
Tuint08 uiSelector |
Definition at line 51 of file code_TestHooks.c.
Referenced by appLoop_Select(), appTick00(), appTick08(), and appTick16().