2022-03-02 06:28 PM
hello
i'm having a question. why gpioX boundary address(range) is 1kb ???
according to datasheet, GPIOA's boundary address is 0x4002 0000 - 0x4002 03FF.
but offset for register to be set is 0x00 - 0x24.
i think that using 1kb to cover that range is inefficient.
2022-03-02 06:48 PM
> i think that using 1kb to cover that range is inefficient.
Actual memory is not being addressed here, it is just a register interface which uses the memory address interface for convenience.
The total address space spans 4GB, there isn't really a compelling reason for saving 1kB here and there.
A lot of other peripherals span 1kB or multiples thereof as well, presumably that was chosen as the minimum alignment space.