struct RCFGCALbits error

Post your requests and ideas on the future development of mikroC for dsPIC30/33 and PIC24.
Post Reply
Author
Message
Hertz
Posts: 18
Joined: 28 Aug 2007 13:35

struct RCFGCALbits error

#1 Post by Hertz » 06 Oct 2008 21:10

Why is it, that only the struct RCFGCALbits is defined as:

Code: Select all


register volatile struct {
    unsigned CAL0:1;
    unsigned CAL1:1;
    unsigned CAL2:1;
    unsigned CAL3:1;
    unsigned CAL4:1;
    unsigned CAL5:1;
    unsigned CAL6:1;
    unsigned CAL7:1;
    unsigned RTCPTR0:1;
    unsigned RTCPTR1:1;
    unsigned RTCOE:1;
    unsigned HALFSEC:1;
    unsigned RTCSYNC:1;
    unsigned RTCWREN:1;
    unsigned :1;
    unsigned RTCEN:1;
} RCFGCALbits  absolute 0x626;
for p24FJ128GA010.c and all other defs are defined:

Code: Select all

register volatile struct {
    unsigned CAL0:1;
    unsigned CAL1:1;
    unsigned CAL2:1;
    unsigned CAL3:1;
    unsigned CAL4:1;
    unsigned CAL5:1;
    unsigned CAL6:1;
    unsigned CAL7:1;
    unsigned RTCPTR:2;
} RCFGCALbits  absolute 0x626;
This means that I can't access all the bits via this structure. I know I could use RCFGCAL. But I think it must be a error.

Hertz
Posts: 18
Joined: 28 Aug 2007 13:35

#2 Post by Hertz » 07 Oct 2008 19:17

The correct filename is p24FJ128GA006.c not p24FJ128GA010.c

Post Reply

Return to “mikroC for dsPIC30/33 and PIC24 Wish List”