Status: Assigned
Owner: [email protected]
Labels: Type-Defect Priority-Medium

New issue 75 by [email protected]: type mismatch in adc_clock
http://code.google.com/p/jallib/issues/detail?id=75

What steps will reproduce the problem?
compile following code snipped
include 18f14k50                    -- target PICmicro

--
-- This program assumes a 12 MHz resonator or crystal
-- is connected to pins OSC1 and OSC2.
-- Configuration bits may cause a different frequency!
pragma target OSC HS               -- HS crystal or resonator
pragma target clock 48_000_000     -- oscillator frequency

const ADC_NCHANNEL              = 1         -- number of selected channels
const ADC_NVREF                 = 0         -- number of external
references
const ADC_RSOURCE               = 10_000    -- maximum source resistance
const ADC_HIGH_RESOLUTION       = true          -- 10 bits

include adc


What is the expected output? What do you see instead?

adc_clock.jal:104: type mismatch

line 104:         var volatile bit*2 jallib_adcs is ADCON2_ADCS

and ADCON2_ADCS is defined as:

var volatile bit*3  ADCON2_ADCS          shared at ADCON2 : 0




--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to