WsprryPi icon indicating copy to clipboard operation
WsprryPi copied to clipboard

Change GPIO?

Open rsoennic opened this issue 3 years ago • 0 comments
trafficstars

HI, My GPIO4 is no longer working, after years as a WSPR beacon. I would like to switch the output to GPIO5 which I believe has the same clock out alternate function. (Clock 1 instead of clock0?)

I have tried to do this in the code but with no luck so far. In gpioclk.cpp SETBIT(GPFSEL0 , 14); CLRBIT(GPFSEL0 , 13); CLRBIT(GPFSEL0 , 12);

becomes

SETBIT(GPFSEL0 , 17);
CLRBIT(GPFSEL0 , 16);
CLRBIT(GPFSEL0 , 15);

and references to CM_GP0DIV and CM_GP0CTL become CM_GP1DIV and CM_GP1CTL, with new base address defines.

Still no output.

Can anyone help with this?

Thanks

Rich

rsoennic avatar Jun 17 '22 17:06 rsoennic