@CHIP-RTOS C Library V2.00 - Hardware API
hal_init_timer_ext
Initialize timer settings Extended void hal_init_timer_ext ( unsigned char timer,
unsigned short mode ); Parameters
timer
- Timer
0=Timer0 / 1=Timer1
mode
- Timer mode:
Bit 0..2: must be 0
Bit 3: 0=disable prescale t2 / 1=enable prescale t2
Bit 4: 0=disable retrigger / 1=enable retrigger
Bit 5..15: must be 0
Return Value
- -- none --.
Comments
- This function must be called after the Initialize Timer Settings function call!
Prescale T2:
If The Prescale feature is enabled, the timer (specified in AL) will
use Timer2 for timer base.
Timer2 is used internal and is configured for millisecond clock. If this bit is disabled the
value which will be returned from the function Get Frequencies
will be used for timerbase.
Retrigger:
If the retrigger setting is enabled a 0 to 1 edge transition on TMRIN0 or TMRIN1
resets the count. When set to 0, a High input enables counting and a Low input holds
the timer value.
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
|