Skip to main content

IAR Embedded Workbench for RX 5.20

__orderInterrupt

In this section:
Syntax
__orderInterrupt(specification, first_activation, repeat_interval, variance,
                  infinite_hold_time, hold_time, probability)
Parameters
specification

The interrupt (string). The specification can either be the full specification used in the device description file (ddf) or only the name. In the latter case the interrupt system will automatically get the description from the device description file.

first_activation

The first activation time in cycles (integer)

repeat_interval

The periodicity in cycles (integer)

variance

The timing variation range in percent (integer between 0 and 100)

infinite_hold_time

1 if infinite, otherwise 0.

hold_time

The hold time (integer)

probability

The probability in percent (integer between 0 and 100)

Return value

The macro returns an interrupt identifier (unsigned long).

If the syntax of specification is incorrect, it returns -1.

For use with

The C-SPY simulator.

Description

Generates an interrupt.

Example

This example generates a repeating interrupt using an infinite hold time first activated after 4000 cycles:




__orderInterrupt( "SCI0_RXI0", 4000, 2000, 0, 1, 0, 100 );