Keil Logo

INTERVAL Compiler Directive

Abbreviation

None.

Arguments

An optional interval, in parentheses, for the interrupt vector table. The permitted range is 3 — 64.

Default

INTERVAL (8)

µVision

Options — C251 — Misc controls.

Description

The INTERVAL directive specifies an interval for interrupt vectors. When this directive is specified, the compiler locates interrupt vectors at the absolute address calculated by:

(interval × n) + offset + 3,

where:

interval is the argument of the INTERVAL directive (default 8).
n is the interrupt number.
offset is the argument of the INTVECTOR directive (default 0).
See Also

INTVECTOR, NOINTVECTOR

Example
C251 SAMPLE.C INTERVAL(3)

#pragma interval(3)
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.