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

a simple question about PE_SWD

in a file measure.ini:


PE_SWD = 0 /* Disable Watchdog with pin PE_SWD */



but the compiler says "PE_SWD undefined identifier".

is there anyone who can tell me what i should do,thanks a lot!

Parents
  • Either you've not spelled it the same way as it is spelling in the header file or your header file doesn't contain it.

    For Keil compilers you can usually create an sfr definition like this:

    sbit PE_SWD = 0x98;
    Where 0x98 is some address you get from the data sheet for your chip. Here I'm assuming that PE_SWD is a port pin (a single bit) on some port.

    - Mark

Reply
  • Either you've not spelled it the same way as it is spelling in the header file or your header file doesn't contain it.

    For Keil compilers you can usually create an sfr definition like this:

    sbit PE_SWD = 0x98;
    Where 0x98 is some address you get from the data sheet for your chip. Here I'm assuming that PE_SWD is a port pin (a single bit) on some port.

    - Mark

Children
No data