question for #C programmers who deal with embedded low-level operations:

just to be sure, constructions like

*(volatile uint32_t*)0x069420 = 0x01234567;

that is typically how memory-mapped register writes are written in C, right?

Kaito / Katie Sinclaire @KS

@rnd yeah, that's correct

though usually you'll have a define that resolves to ((volatile uint32_t*)0x069420) so you don't need to keep that in mind, of course

· Web · 0 · 0