Hi, I having the H8/300 3664 target application. The entire code was written on IAR ICCH8 compiler, AH8300 assembler XLINK linker in C language. I want to make compatible this entire code with HEW, but the problem is that, it gives lots of errors. Errors probably with the iodefine.h file definitions. That having totally different syntax. File related to ICCH8 compiler based having totally different resistor definition syntax and NO bit definitions presents. How to access the bit inside the defined Bytes with HEW without errors. sample formate -The IAR ICCH8 file formate (IOH83664.H) : #define ICCR (ICC_UCHAR (0xffC4)) /* IIC bus control */ -HEW iodefine.h formate: #define IIC (*(volatile struct st_iic *)0xFFC4) /* IIC Address*/ struct st_iic { /* struct IIC */ union { /* ICCR */ unsigned char BYTE; /* Byte Access */ struct { /* Bit Access */ unsigned char ICE :1; /* ICE */ unsigned char IEIC:1; /* IEIC */ unsigned char MST :1; /* MST */ unsigned char TRS :1; /* TRS */ unsigned char ACKE:1; /* ACKE */ unsigned char BBSY:1; /* BBSY */ unsigned char IRIC:1; unsigned char SCP :1; } BIT; } ICCR; .............. .............. Use the bit IIC.ICCR.BIT.BBSY = 1; gives errors, please give guidance to solve the same.
↧