Skip to content

Change GPIO? #4

@rsoennic

Description

@rsoennic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions