Skip to content

Commit 3ce888e

Browse files
fabianomsigrr
authored andcommitted
macro attributes should be used with brackets
related to the issue #2617.
1 parent c51c7b4 commit 3ce888e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/sdk/include/eagle_soc.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@
9595
//}}
9696

9797
//GPIO reg {{
98-
#define GPIO_REG_READ(reg) READ_PERI_REG(PERIPHS_GPIO_BASEADDR + reg)
99-
#define GPIO_REG_WRITE(reg, val) WRITE_PERI_REG(PERIPHS_GPIO_BASEADDR + reg, val)
98+
#define GPIO_REG_READ(reg) READ_PERI_REG(PERIPHS_GPIO_BASEADDR + (reg))
99+
#define GPIO_REG_WRITE(reg, val) WRITE_PERI_REG(PERIPHS_GPIO_BASEADDR + (reg), val)
100100
#define GPIO_OUT_ADDRESS 0x00
101101
#define GPIO_OUT_W1TS_ADDRESS 0x04
102102
#define GPIO_OUT_W1TC_ADDRESS 0x08

0 commit comments

Comments
 (0)