Merge pull request #472 from hathach/fix-msp430-warning

fix msp430 gcc 9.2.0 warning
This commit is contained in:
Ha Thach
2020-08-02 12:53:03 +07:00
committed by GitHub
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)
{