@CHIP-RTOS C Library V2.06 - Hardware API
hal_read_timer_count
Read timer count unsigned short hal_read_timer_count ( unsigned char timer,
unsigned short far * maxcount ); Parameters
timer
- Which timer:
0 = Timer0 / 1 = Timer1
maxcount
- Optional output parameter.
If this pointer is not NULL, then a Boolean is output:
0 -> Maximum count not reached
1 -> Maximum count reached
Set to NULL if not interested in maximum count.
Return Value
- Current count of the associated timer
Comments
- Read the timer count.
Return value contains the current count of the associated timer.
The count is incremented by the processor internal clock (see HAL
hal_get_frequencies function),
unless the timer is configured for external clocking (then
it is clocked by the TMRIN0 and TMRIN1 inputs, see
pfe_enable_timer function).
See Also
RTOS API
- This library function invokes a RTOS software interrupt.
Refer to this RTOS API function's
documentation
for more details.
Supported since or modified in @CHIP-RTOS version-
SC12 | SC13 | SC11 | SC1x3 |
-
V1.00 | V1.00 | V1.00 | V0.90 |
This API List
List of C Libraries
@CHIP-RTOS Main Index
End of document
|