From 3ce888e87b6f2a99f6a1bf0ad0baa7cd1d3dbf70 Mon Sep 17 00:00:00 2001 From: fabianoms Date: Mon, 12 Mar 2018 21:23:57 -0300 Subject: [PATCH] macro attributes should be used with brackets related to the issue #2617. --- tools/sdk/include/eagle_soc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/sdk/include/eagle_soc.h b/tools/sdk/include/eagle_soc.h index c572abc660..3cff370f1c 100644 --- a/tools/sdk/include/eagle_soc.h +++ b/tools/sdk/include/eagle_soc.h @@ -95,8 +95,8 @@ //}} //GPIO reg {{ -#define GPIO_REG_READ(reg) READ_PERI_REG(PERIPHS_GPIO_BASEADDR + reg) -#define GPIO_REG_WRITE(reg, val) WRITE_PERI_REG(PERIPHS_GPIO_BASEADDR + reg, val) +#define GPIO_REG_READ(reg) READ_PERI_REG(PERIPHS_GPIO_BASEADDR + (reg)) +#define GPIO_REG_WRITE(reg, val) WRITE_PERI_REG(PERIPHS_GPIO_BASEADDR + (reg), val) #define GPIO_OUT_ADDRESS 0x00 #define GPIO_OUT_W1TS_ADDRESS 0x04 #define GPIO_OUT_W1TC_ADDRESS 0x08