www.beck-ipc.com

@CHIP-RTOS C Library V2.00 - Hardware API


hal_write_timer_count

Write timer count

void hal_write_timer_count ( unsigned char timer,
                             unsigned short counter );

Parameters

timer

Which timer:
    0 = Timer0 / 1 = Timer1

counter

Value to write to 16 bit counter

Return Value

-- none --.

Comments

Preset the specified timer's count register to provided value.

The timer count can be written at any time, regardless of whether the corresponding timer is running.

See Also

RTOS API

This library function invokes a RTOS software interrupt. Refer to this RTOS API function's documentation for more details.


This API List
List of C Libraries
@CHIP-RTOS Main Index


End of document