Skip to content

GPIO PUT32 vs MMIO #1

Description

@nateclaflin

I appreciate your repo, as it is very easy to understand and is helping me get started on bare metal for this plaform.

Forgive the question if i'm missing some fundamental information on this, but is there any reason why you're going through the hassle of setting the GPIO data through register access instead of using pointers to directly assign memory?

i.e.

#define GPCLR1 0x2020002C
PUT32(GPCLR1, 1<<(47-32));

instead of

#define GPCLR1 ((unsigned int *) 0x2020002C)
*GPCLR1 = 1<<(47-32);

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