I'm writing a program for an embedded application. There are several registers at fixed addresses, and I'd like to refer to those addresses symbolically.
But this strikes me as really inelegant and rather failure-prone (I left out much of the pointer arithmetic necessary to get to offsets from these base addresses).
One solution, I suppose, would be to use pointers to uint8_t instead of 32, but...I'll need to set 32-bit values in a single operation, so I'm not sure that will work. Any suggestions on this?