CLK_start
2-56
C Interface
Syntax
CLK_start();
Parameters
Void
Return Value
Void
Reentrant
no
Description
This function starts the low-resolution timer if it has been halted by
CLK_stop. The period and prescalar registers are updated to reflect any
changes made by a call to CLK_reconfig. This function then resets the
timer counters and starts the timer.
CLK_start should only be used in conjunction with CLK_reconfig and
CLK_stop. See the section on CLK_reconfig for details and the allowed
calling sequence.
Note that all ’C55x platforms except the ’C5501, ’C5502, and OMAP
2320/2420 use the same timer to drive low-resolution and high-resolution
times. On such platforms, both times are affected by this API.
Constraints and
Calling Context
❏
Call HWI_disable/HWI_restore or SWI_disable/SWI_enable around
a block that stops, configures, and restarts the timer as needed to
prevent re-entrancy or other problems. That is, you must disable
interrupts if an interrupt could lead to another call to CLK_start or if
interrupt processing relies on having a running timer to ensure that
these non-reentrant functions are not interrupted
❏
This function cannot be called from main().
❏
If you use the PWRM module for V/F scaling and the "Reprogram
BIOS clock after frequency scaling" PWRM property is "true", do not
call CLK_start. This is because the PWRM module internally calls
this API.
See Also
CLK_reconfig
CLK_stop
GBL_setFrequency
CLK_start
Restart the low-resolution timer