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

Compiler Conversion to Keil

I am trying to convert a very old project over from another compiler and have managed to reduce it down to a handful of problems and was wondering if anyone had a solution.

Problem 1:
static volatile UCHAR S1CON @ 0xd8; /* I2C config register */

This is erroring at the @ 0xd8. How do I convert these types of lines to Keil?

Problem 2:
typedef FAR struct MESSAGE_QUEUEStruct { INT q_entries; struct { INT duration; INT length; UCHAR remote; ULONG amount; code CHAR *ptr; } msg[MAX_Q_ENTRIES];

This snipet does not like the use of the word "code" in this file. Is there a seperate keyword to mean code space on the Keil Compiler?

Problem 3:
Interrupt declaration.

I have
typedef interrupt void (*isr)(void);
from the old compiler and I tried to convert it to the way Keil says in their manual but with no luck.

Any help would be greatly appreciated.

0