CLK_stop
Application Program Interface
2-57
C Interface
Syntax
CLK_stop();
Parameters
Void
Return Value
Void
Reentrant
no
Description
This function stops the low-resolution timer. It can be used in conjunction
with CLK_reconfig and CLK_start to reconfigure the timer at run-time.
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.
CLK_stop should only be used in conjunction with CLK_reconfig and
CLK_start, and only in the required calling sequence. See the section on
CLK_reconfig for details.
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_stop 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_stop. This is because the PWRM module internally calls
this API.
See Also
CLK_reconfig
CLK_start
GBL_setFrequency
CLK_stop
Halt the low-resolution timer