0

I want to declare an interrupt routine function.

Originally written for armcc as :

extern "C" __irq void System_FiqDispatcher() SECTION_SRAM_2;

I am writing the same as:

extern "C" __attribute__ (( interrupt("IRQ"))) void System_FiqDispatcher() SECTION_SRAM_2;

I got the following error: line XXX : Error: #1207-D: attribute "interrupt" ignored. What could be the problem?

osgx
  • 90,338
  • 53
  • 357
  • 513
aditya3524
  • 175
  • 2
  • 4
  • 12

0 Answers0