sarmfsw: SMFSW Toolbox (for ARM & compatible with Arduino platform) 3.7
SMFSW collection of miscellaneous functions & macros (for ARM & compatible with Arduino platform)
Loading...
Searching...
No Matches
arm_inlines_ticks.h File Reference

Ticks related inlines. More...

This graph shows which files directly or indirectly include this file:

Functions

BOOL TPSSUP_MS (const DWORD prev, const DWORD time)
 Tests if stored time value has reached time lapse in ms.
 
BOOL TPSINF_MS (const DWORD prev, const DWORD time)
 Tests if stored time value has not reached time lapse in ms.
 

Detailed Description

Ticks related inlines.

Author
SMFSW

Function Documentation

◆ TPSINF_MS()

BOOL TPSINF_MS ( const DWORD prev,
const DWORD time )
inline

Tests if stored time value has not reached time lapse in ms.

Warning
For SAM families, no ms base time counter is implemented in HAL, please refer to arm_chip_sam.h for an implementation example.
Note
Define custom HAL_MS_TICKS_FACTOR at project level if tick period is not 1ms
Parameters
[in]prev- previously stored time value
[in]time- time lapse (in ms)
Returns
true if time not elapsed

◆ TPSSUP_MS()

BOOL TPSSUP_MS ( const DWORD prev,
const DWORD time )
inline

Tests if stored time value has reached time lapse in ms.

Warning
For SAM families, no ms base time counter is implemented in HAL, please refer to arm_chip_sam.h for an implementation example.
Note
Define custom HAL_MS_TICKS_FACTOR at project level if tick period is not 1ms
Parameters
[in]prev- previously stored time value
[in]time- time lapse (in ms)
Returns
true if time elapsed