WsprryPi
WsprryPi copied to clipboard
Change GPIO?
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