diff options
| author | Ha Thach <[email protected]> | 2020-08-02 12:53:03 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-08-02 12:53:03 +0700 |
| commit | 72464faca4e00ff932348043e05286d5a5d586b9 (patch) | |
| tree | a2ac5befe9bab738bfb1611d530b6201cb433adc /src | |
| parent | 310797a58073dbd6d56eb4c85afd354949ce6630 (diff) | |
| parent | 6976e642176cf76be9cc1bd2ef1a137a0e71e078 (diff) | |
Merge pull request #472 from hathach/fix-msp430-warning
fix msp430 gcc 9.2.0 warning
Diffstat (limited to 'src')
| -rw-r--r-- | src/portable/ti/msp430x5xx/dcd_msp430x5xx.c | 3 |
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) { |
