Hi
I see that the Luminary examples of interrupt functions do not use the __irq keyword attribute on the interrupt functions.
Any reason why? (is the __irq not needed when using M3 devices ? )
Johan
No function attribute for interrupt function is required because Cortex-M3 HW takes care of Interrupt Entry/Exit. Therefore interrupt functions are regular functions and no compiler attributes are necessary.
Ok Thanks
I just wonder why the TCPNET and CAN example still use the __irq keyword ... (C:\Keil\ARM\Boards\Luminary\ek-lm3s6965\RL\TCPnet\Library\LM3S_EMAC.c ) Maybe they forgot to remove it..
The __irq keyword is defined as empty when using Cortex-M3.
The reason why it is still in some examples is very simple. The same source code can be used also for ARM7/9.