Similarities and differences between suite3.4.7 and Keil U3 with fx2.h and fx2regs. H files

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.