Y
Hacker News
new
|
ask
|
show
|
jobs
by
ahaferburg
2392 days ago
You could split up the definition of the pointer and the dereferencing+assignment:
volatile uint32_t* p = (volatile uint32_t *)0x40021018; *p = 0x00000004;