Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor10440991044099 Every Interrupt Vectors to a Unique Location Anchor10441001044100If the interrupt controller vectors directly to the appropriate interrupt handler, each of the ISRs that are actually used in the application must be written in assembly language as described in section 9-2 “Typical µC/OS-III Interrupt Service Routine (ISR)” on page 161. This, of course, slightly complicates the design. However, you can copy and paste the majority of the code from one handler to the other and just change what is specific to the actual device. Anchor10441011044101

If the interrupt controller allows the user to query it for the source of the interrupt, it may be possible to simulate the mode in which all interrupts vector to the same location by simply setting all vectors to point to the same location. Most interrupt controllers that vector to a unique location, however, do not allow users to query it for the source of the interrupt since, by definition, having a unique vector for all interrupting devices should not be necessary.