This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

problem in absolute variable location

I would appreciate your help to fix this problem:
--------------------------------------------------
<main.c>

// include files
#include "main.h"

// main
int
main(void)
{ //test code for problem in h file

while (reg1) { // wait }
}

// end

<main.h>

volatile unsigned char reg1 __at 0x40004000; //see the semicolon?

// end

<build>

Build target 'Target 1'

compiling main.c...

main.h(1): error: #65: expected a ";"

Target not created

-----------------------------------
Eric

0