You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems to me that the digitalPinToPCMSK macro in all Mighty 1284P variants have never been used, let alone been tested.
The bobuino version will probably give a compilation failure if you would try to use it.
#define digitalPinToPCMSK(p) ifpin(p,__pcmsk[digital_pin_to_pcint[]],(uint8_t *)0)
There is a p missing.
The standard and avr_developers variants will return an incorrect PCMSKx. The macro expansion should match digitalPinToPCMSK right above it. I think that this is what is should be:
@avandun I apologize if this is not an appropriate comment for the repository, but have you considered WildFire (wildfire.wickeddevice.com) which is a Mega1284P integrated with a CC3000 on one board?
It seems to me that the digitalPinToPCMSK macro in all Mighty 1284P variants have never been used, let alone been tested.
The bobuino version will probably give a compilation failure if you would try to use it.
#define digitalPinToPCMSK(p) ifpin(p,__pcmsk[digital_pin_to_pcint[]],(uint8_t *)0)
There is a p missing.
The standard and avr_developers variants will return an incorrect PCMSKx. The macro expansion should match digitalPinToPCMSK right above it. I think that this is what is should be:
#define digitalPinToPCICRbit(p) (((p) <= 7) ? 1 : (((p) <= 15) ? 3 : (((p) <= 23) ? 2 : 0)))
#define digitalPinToPCMSK(p) (((p) <= 7) ? (&PCMSK1) : (((p) <= 15) ? (&PCMSK3) : (((p) <= 23) ? (&PCMSK2) : (&PCMSK0))))
The text was updated successfully, but these errors were encountered: