fix msp430 gcc 9.2.0 warning in #465

This commit is contained in:
hathach
2020-07-28 14:36:15 +07:00
parent 6035572036
commit 6976e64217
2 changed files with 6 additions and 5 deletions

View File

@@ -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)
{