when compiled it just gives the following error
line 7: from main.c
when string.h at line 7 is commented out
line 14:syntax error before " void"
the source code is like:
#include %26lt;reg9s12c.h%26gt;
//#include %26lt;introl.h%26gt;
#include %26lt;hc812a4.h%26gt;
#include %26lt;dbug12.h%26gt;
#include %26lt;string.h%26gt;
//Global Variables
#define highLow 75 //seize of data arrays
void Keypadlnit(); // initialize the keypad
//__mod2__void KeyWakeuplSR(); // ISR for each keypad depression (KWI)
void __attribute__((interrupt)) KeyWakeuplSR(void);
etc.,------------
----------
String.h error?
There is too much missing to answer. You say "when string.h at line 7 is commented out" but that line is line 5.
The error says the void at line 14 but there are three voids. Which is at line 14. Please provide the raw code. There is probably something there that is causing the problem.
Note also tell me what target you are using - that attribute may require arguments depending on what target - e.g. ARM may require "IRQ" or something separate.
Note also - I have always placed the attribute after the function declaration e.g.
void KeyWakeUpISR(void) __attribute__((interrupt));
In any event I need to see more.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment