Skip to main content

IAR Embedded Workbench for RH850 3.20.x

__setTimerStartBreak

In this section:
Syntax
__setTimerStartBreak(location, ID)
Parameters
location

A string that defines the code location of the breakpoint, either a valid C-SPY expression whose value evaluates to a valid address, an absolute location, or a source location. For more information about the location types, see Enter Location dialog box.

ID

The Timer number, an integer from 1–16 that identifies the timer that the breakpoint will start.

Return value

Result

Value

Successful

An unsigned integer uniquely identifying the breakpoint. The same value must be used when you want to clear the breakpoint.

Unsuccessful

0

Table 43. __setTimerStartBreak return values


For use with

The C-SPY hardware debugger drivers.

Description

Sets a breakpoint at the specified location. When that breakpoint is triggered, a timer is started that measures the execution time between two execution points.

Example
__var startTimerBp;
__var stopTimerBp;

timerOn()
{
  startTimerBp = __setTimerStartBreak
    ("{C:\\TEMP\\Utilities.c}.23.1", 3);
  stopTimerBp = __setTimerStopBreak
    ("{C:\\temp\\Utilities.c}.30.1", 3);
}

timerOff()
{
  __clearBreak(startTimerBp);
  __clearBreak(stopTimerBp);
}
See also

Breakpoints.