www.beck-ipc.com

@CHIP-RTOS C Library V2.06 - 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.

Supported since or modified in @CHIP-RTOS version

    SC12SC13SC11SC1x3
    V1.00V1.00V1.00V0.90

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


End of document