I'm trying to compile in VS Code but error appears for this line of code:
void interrupt_handler_function(void) __attribute__ ((interrupt("FIQ"))); error:
error: x86 'interrupt' attribute only applies to functions that have only a pointer parameter optionally followed by an integer parameter
Compiler is: GCC 9.4.0 x86_64-linux-gnu
Am I missing something in the interrupt declaration? Any input is much appreciated!
Tried solution in this link: clang-check using arm as a target but did not work