I asked this over at jallist, but no answer yet For example in the chip include def file...
EEPROM Format: PRAGMA EEPROM cexpr0 ',' cexpr1 Defines EEPROM available to the chip. cexpr0 is the ORG used when programming the device, size is the EEPROM cexpr1 in bytes. So... in a const declaration how do I incorporate the cexpr1 defined in the chip file? I want to check array bounds of offset address. for example include 18f4550 has -- include chipdef_jallib -- common constants -- pragma target cpu PIC_16 -- (banks = 16) pragma target chip 18f4550 pragma target bank 0x0100 pragma stack 31 pragma code 32768 -- (bytes) pragma eeprom 0xF00000,256 pragma ID 0x200000,8 pragma data 0x60-0xFF,0x100-0x1FF,0x200-0x2FF,0x300-0x3FF pragma shared 0x0-0x5F -- the size of eeprom varies. How do I use the 2nd value in my library code automatically to do an array bound test as different PICs may have differing amount of eeprom? -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
