@CHIP-RTOS C Library V2.00 - Hardware API
hal_get_frequencies
Get the specified system frequency. unsigned long hal_get_frequencies ( HW_FREQ_SELECTOR freq_select ); Parameters
freq_select
- Enumerator, which frequency to get:
GET_FRQ_PROCESSOR = 0: Return processor frequency
GET_FRQ_TIMER = 1: Return timer base frequency
GET_FRQ_MAX_BAUD = 2: Return maximum baud rate
GET_FRQ_PWD = 3: Return PWD timer frequency
Return Value
- frequency [Hz].
Comments
- Use the timer base frequency to compute the correct timer clock divider
value, where:
Output frequency = timer base frequency / clock divider
Use the maximum baud rate compute the correct baud rate for the
processor specific baud rate initialize function (See Fossil
Extended line control initialization
fossil_set_extctrl function).
Baud rate = maximum baud rate / baud rate divider
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
|