ARM Technical Support Knowledge Articles


Applies to: General Topics


Information in this article applies to:


I've noticed that in many places interrupt routines defined in C are declared with the static keyword. For example:

static void ISR (void) interrupt 0

Why is that?


It's just good practice to declare the ISR static. The static keyword makes the interrupt function invisible to functions outside the file where it is defined. This makes sense because the interrupt function can't actually be called by another function.

Article last edited on: 2004-12-17 05:14:05

Rate this article

Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential