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);
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);