Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#1576 bug2 in P89LPC922.h

closed-fixed
nobody
5
2009-10-30
2009-10-30
petzi
No

Hi,
there is a bug in sdcc/include/msc51/P89LPC922.h
CMP1 and CMP2 are defined twice!

__sfr __at (0xAC) CMP1 ;
__sfr __at (0xAD) CMP2 ;
...
#define CMP1 P0_6
...
#define CMP2 P0_0

Suggestion for solution:

#define CMPOUT1 P0_6
#define CMPOUT2 P0_0

best regards
Rainer

Discussion

    • status: open --> closed-fixed
     
  • Fixed in SDCC 2.9.4 #5559

    Other 'lpc' header files use CMP_1 and CMP_2, so these names were used for P89LPC922.h as well.