The reason a driver's register definitions are usually written as a struct of volatile members is that it
Answer: C
One structure placed at the peripheral's base address gives every register a name and the compiler computes the offsets, which is far less error-prone than a list of address macros. The volatile qualifier on the members is what makes the accesses happen as written.
Please log in or register to report this question.