X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/a2101157f7f6ffda8274d907bc103b63f87aebb6..7c91c8bf24e2879751a23232b84077f459ee8789:/common/usb_cdc.c diff --git a/common/usb_cdc.c b/common/usb_cdc.c index 5111ac1f..9a24dc13 100644 --- a/common/usb_cdc.c +++ b/common/usb_cdc.c @@ -177,22 +177,22 @@ const char strDescriptor[] = { // Clear flags in the UDP_CSR register and waits for synchronization #define UDP_CLEAR_EP_FLAGS(endpoint, flags) { \ volatile unsigned int reg; \ - reg = pUdp->UDP_CSR[endpoint]; \ + reg = pUdp->UDP_CSR[(endpoint)]; \ reg |= REG_NO_EFFECT_1_ALL; \ reg &= ~(flags); \ - pUdp->UDP_CSR[endpoint] = reg; \ - while ( (pUdp->UDP_CSR[endpoint] & (flags)) == (flags)); \ -} + pUdp->UDP_CSR[(endpoint)] = reg; \ + while ( (pUdp->UDP_CSR[(endpoint)] & (flags)) == (flags)); \ +} \ // reset flags in the UDP_CSR register and waits for synchronization #define UDP_SET_EP_FLAGS(endpoint, flags) { \ volatile unsigned int reg; \ - reg = pUdp->UDP_CSR[endpoint]; \ + reg = pUdp->UDP_CSR[(endpoint)]; \ reg |= REG_NO_EFFECT_1_ALL; \ reg |= (flags); \ - pUdp->UDP_CSR[endpoint] = reg; \ - while ( ( pUdp->UDP_CSR[endpoint] & (flags)) != (flags)); \ -} + pUdp->UDP_CSR[(endpoint)] = reg; \ + while ( ( pUdp->UDP_CSR[(endpoint)] & (flags)) != (flags)); \ +} \ /* USB standard request code */