3 ms·
You could split up the definition of the pointer and the dereferencing+assignment: volatile uint32_t* p = (volatile uint32_t *)0x40021018; *p = 0x00000004;
by ahaferburg 7y ago
You could split up the definition of the pointer and the dereferencing+assignment:
volatile uint32_t* p = (volatile uint32_t *)0x40021018;
*p = 0x00000004;