Hi Albert,
I can include this test in the pwm libs, so you don't have to alias anything
before include them:
if defined(CCPCON1) or defined(ECCPCON1) then
include pwm_ccp1
end if
But I don't know is these libs work as expected with enhanded pwm... From
what you say, it seems to.
Cheers,
Seb
> Hi,
> I also want to use both PWMs on a 18f4550, this device has a standard
> and an enhanced PWM module, by default only PWM2 is included, since
> CCP1CON is not defined. I can get around the issue by adding the
> following alias
>
> var byte CCP1CON is ECCP1CON
>
> before including pwm_hardware file
>
> This seems to work OK, but was wondering if there is a better
> solution, because it makes to code less portable
>
> Regards Albert
> >
>
--
Sébastien Lelong
http://www.sirloon.net
http://sirbot.org
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---