CLK Module
Application Program Interface
2-39
2.4
CLK Module
The CLK module is the clock manager
.
Functions
❏
CLK_countspms. Timer counts per millisecond
❏
CLK_cpuCyclesPerHtime. Return high-res time to CPU cycles factor
❏
CLK_cpuCyclesPerLtime. Return low-res time to CPU cycles factor
❏
CLK_gethtime. Get high-resolution time
❏
CLK_getltime. Get low-resolution time
❏
CLK_getprd. Get period register value
❏
CLK_reconfig. Reset timer period and registers using CPU frequency
❏
CLK_start. Restart low-resolution timer
❏
CLK_stop. Stop low-resolution timer
Configuration
Properties
The following list shows the properties that can be configured in a Tconf
script, along with their types and default values. For details, see the CLK
Manager Properties and CLK Object Properties headings. For
descriptions of data types, see Section 1.4,
Module Configuration Parameters
C55x Name
Type
Default (Enum Options)
OBJMEMSEG
Reference
prog.get("DARAM")
TIMERS_BASE
Numeric
0x7000 (OMAP 2420 only)
TIMERS_BASE_DATAMEM
Numeric
0x7ee000 (OMAP 2420 only)
TIMERSELECT
String
"Timer 0"
("Timer 5" for OMAP 2420)
ENABLECLK
Bool
true
HIRESTIME
Bool
true
ENABLEHTIME
Bool
true (C5501, 5502,
OMAP 2320/2420 only)
MICROSECONDS
Int16
1000.0071
CONFIGURETIMER
Bool
false
FIXTDDR
Bool
false (not for OMAP 2320/2420)
LOAD_TIM
Int16
2999 (1x10, 59xx only)
TCRTDDR
EnumInt
0 (0 to 15)
(not for OMAP 2320/2420)