2 ms·
I'm not a fan of anything that writes to a register just by assigning a value to some variable. I much prefer having some kind of READ_REG/WRITE_REG inline fun
by Khoth 8y ago
I'm not a fan of anything that writes to a register just by assigning a value to some variable.
I much prefer having some kind of READ_REG/WRITE_REG inline function (or macro at a pinch). Sooner or later you're going to find yourself wanting to log all register accesses, or run the firmware against a model of the hardware, or something, and when you do it's a great help to have to handle it in only one place.