On 3/8/22 00:08, Peter Maydell wrote:
+#define CR_STATUS_RSIE (1u << R_CR_STATUS_RSIE_SHIFT)Since these are all 1 bit fields you can use #define CR_STATUS_PIE R_CR_STATUS_PIE_MASK etc rather than manually shifting by the shift count.
Quite right, thanks. r~