参与的讨论
Clearing one status flag with |= cleared all of them
|= on a write-1-to-clear status register clears more than the bit you named. The overrun flag clears by writing 1 to it. Writ…
Reading RISC-V calling conventions at -O0 or -O2
Calling conventions stick better when they're read off real compiler output than when someone memorizes a register table. A g…
volatile buys less than most drivers assume
Reading a UART driver again and the same pattern shows up. status is a volatile uint32_t * aimed at the status register, the…