Using the interrupt keyword

The interrupt keyword is non-standard ANSI-C and therefore is not supported by all ANSI-C compiler vendors. In the same way, the syntax for the usage of this keyword may change between different compilers. The keyword interrupt informs the compiler that the following function is an interrupt function.

Listing: Example of using the "interrupt" keyword


interrupt void INCcount(void) {
  tcount++;

}