C: \ Keil \ C51 \ Inc \ cypress
D: \ cypress suite USB 3.4.7 \ firmware \ Inc
??
1. Found the suite3.4.7 folderFx2.hThe file matches the fx2.h file carried inside Keil (the same ).
??
2. TwoFx2regs. hFile does not match. suite3.4.7 comes with a newer version than Keil U3.
??
2.1. the name (long) of the automatic pointer 1 in the Suite version is different from that in the Keil version (short), but it is well compatible. The Compatibility process is as follows:
# Define autoptr1h autoptrh1 // For backwards compatibility with examples
# Define autoptr1l autoptrl1 // For backwards compatibility with examples
# Define aptr1h autoptrh1 // For backwards compatibility with examples
# Define aptr1l autoptrl1 // For backwards compatibility with examples
??
2.2. fx2regs. h provided by suite3.4.7 defines each bit of the IO port. The Keil version does not. The IO port bit is defined as follows:
SFr IOA = 0x80;
/* IOA */
Sbit pa0 = 0x80 + 0;
Sbit pa1 = 0x80 + 1;
Sbit pa2 = 0x80 + 2;
Sbit pa3 = 0x80 + 3;
??
Sbit pa4 = 0x80 + 4;
Sbit pa5 = 0x80 + 5;
Sbit 6 = 0x80 + 6;
Sbit pa7 = 0x80 + 7;
Similarities and differences between suite3.4.7 and Keil U3 with fx2.h and fx2regs. H files