sarmfsw: SMFSW Toolbox (desinged for ARM / compatible with other 8b/16b/32b platforms) 4.0rc
SMFSW collection of miscellaneous functions \& macros (desinged for ARM / compatible with other 8b/16b/32b platforms)
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 start_tick, const DWORD lapse)
 Tests if stored time value has reached time lapse in ms.
 
BOOL TPSINF_MS (const DWORD start_tick, const DWORD lapse)
 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 start_tick,
const DWORD lapse )
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]start_tick- previously stored time value
[in]lapse- time lapse (in ms)
Returns
true if time not elapsed

◆ TPSSUP_MS()

BOOL TPSSUP_MS ( const DWORD start_tick,
const DWORD lapse )
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]start_tick- previously stored time value
[in]lapse- time lapse (in ms)
Returns
true if time elapsed