diff options
Diffstat (limited to '02-usart/include/common.h')
-rw-r--r-- | 02-usart/include/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/02-usart/include/common.h b/02-usart/include/common.h index 394dc62..2f14e42 100644 --- a/02-usart/include/common.h +++ b/02-usart/include/common.h @@ -42,6 +42,6 @@ typedef __IO uint32_t bits_t; #define regset(reg, mask, val) \ - (reg = (reg & ~mask) | (val << CTZ(mask))) + ((reg) = ((reg) & ~mask) | (val << CTZ(mask))) #endif /* COMMON_H */ |