Hi Rob!

I would have suggested it that way, if 

    Am Montag, 10. Juni 2019, 13:18:20 UTC hat Rob Hamerling 
<[email protected]> Folgendes geschrieben:  
 
   
 Sorry, I should have used  'Reply List' (in Thunderbird)
 
 -------- Forwarded Message -------- 
| Subject:  | Re: [jallib] Re: PIC18F27K42, probably PPS problem |
| Date:  | Mon, 10 Jun 2019 15:15:59 +0200 |
| From:  | Rob Hamerling <[email protected]> |
| To:  | Rob CJ <[email protected]> |

 
Hi Rob!
I would have backed your suggestion... If there was something like "all 
INTCON_xxx  bitfields". 

Unfortunately, the bitfields of INTCON and INTCON0 do differ:
e.g. 18f26k22var volatile bit    INTCON_RBIF               at INTCON : 0
var volatile bit    INTCON_INT0IF             at INTCON : 1
var volatile bit    INTCON_TMR0IF             at INTCON : 2
var volatile bit    INTCON_RBIE               at INTCON : 3
var volatile bit    INTCON_INT0IE             at INTCON : 4
var volatile bit    INTCON_TMR0IE             at INTCON : 5
var volatile bit    INTCON_PEIE          at INTCON : 6
var volatile bit    INTCON_GIE_GIEH           at INTCON : 7
vs. 18f27k42var volatile bit    INTCON0_INT0EDG           at INTCON0 : 0
var volatile bit    INTCON0_INT1EDG           at INTCON0 : 1
var volatile bit    INTCON0_INT2EDG           at INTCON0 : 2
var volatile bit    INTCON0_IPEN              at INTCON0 : 5
var volatile bit    INTCON0_GIEL              at INTCON0 : 6
var volatile bit    INTCON0_GIE               at INTCON0 : 7
Greets,Kiste

 On 2019/06/10 14:44, Rob CJ wrote:
  
  I could add your change to the libraries so that it is included in the next 
release.  
   I think it is only sufficient to add this statement though:  -- Some newer 
PICs have INTCON registers numbered differently
      if (defined(INTCON0_GIE) == true) then
       alias INTCON_GIE is INTCON0_GIE
    end if 
 
 
 This may be helpful for the USART libraries, but what about other libraries 
and (sample) programs which use INTCON?
 It looks better to me to add this alias and aliases for INTCON0 itself and 
aliases for all INTCON_xxx  bitfields  in the device file. 
 
 Regards, Rob.
 
 -- 
 Rob Hamerling, Vianen, NL  

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/jallib.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/207a0c14-d89e-4098-fb8f-461415c36f06%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
  

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/jallib.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/1406706930.483595.1560355311716%40mail.yahoo.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to