summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-07-28 14:36:15 +0700
committerhathach <[email protected]>2020-07-28 14:36:15 +0700
commit6976e642176cf76be9cc1bd2ef1a137a0e71e078 (patch)
tree215eafe0f0eb17609729cf65cb1dd20a85903908 /src
parent60355720364f66fff7856c3de1d18382f7912e31 (diff)
fix msp430 gcc 9.2.0 warning in #465
Diffstat (limited to 'src')
-rw-r--r--src/portable/ti/msp430x5xx/dcd_msp430x5xx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c b/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
index 8672050f0..93ba99543 100644
--- a/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
+++ b/src/portable/ti/msp430x5xx/dcd_msp430x5xx.c
@@ -70,8 +70,7 @@ typedef enum
SIZXY = 7
} ep_regs_index_t;
-#define EP_REGS(epnum, dir) &USBOEPCNF_1 + 64*dir + 8*(epnum - 1)
-
+#define EP_REGS(epnum, dir) ((ep_regs_t) ((uintptr_t)&USBOEPCNF_1 + 64*dir + 8*(epnum - 1)))
static void bus_reset(void)
{