Fast and object oriented digitalWrite/digitalRead replacement

@westfw
Yes, you are right.
I was trapped by a warning of the GCC with the ampersand.
(-Wdiscarded-qualifiers)
Thank you very much.
Now I have to find the reason for the crash of my Zero at another place.

Everything okay ... SAMD21 works like SAM3X, simply use the addresses from the data sheet for direct register access.

My mistake was in a new extra routine to handle the pin configuration with the byte registers PINCFG00 to PINCFG31 (relative addresses 40 to 5F). I needed a loop to address all pins marked in my mask. I had forgotten some initialization.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.