X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=device%2Flib%2Fds390%2Frtc390.c;h=ec07e98dcfbb9c4f5e1aed00952972a509f0e18c;hb=5c167d844868e592617c9a8f1355abb9e29647a9;hp=5eff84cc6f5342f46b245bd1bcf09c1d189491ac;hpb=c304f18bce987e35d6992ef46842a522aa0e9f16;p=fw%2Fsdcc diff --git a/device/lib/ds390/rtc390.c b/device/lib/ds390/rtc390.c old mode 100755 new mode 100644 index 5eff84cc..ec07e98d --- a/device/lib/ds390/rtc390.c +++ b/device/lib/ds390/rtc390.c @@ -32,10 +32,10 @@ range since the chip only uses CE3* */ -xdata at 0x310000 static volatile unsigned char rtc; +__xdata __at (0x310000) static volatile unsigned char rtc; // this is the 64bit pattern that has to be recognized by the ds1315 -code unsigned char rtcMagic[8]={0xc5,0x3a,0xa3,0x5c,0xc5,0x3a,0xa3,0x5c}; +__code unsigned char rtcMagic[8]={0xc5,0x3a,0xa3,0x5c,0xc5,0x3a,0xa3,0x5c}; #define BCDtoINT(x) (((x)&0x0f)+((x)>>4)*10) #define INTtoBCD(x) (((x)%10)+(((x)/10)<<4))