// Clear flags in the UDP_CSR register and waits for synchronization\r
#define UDP_CLEAR_EP_FLAGS(endpoint, flags) { \\r
volatile unsigned int reg; \\r
- reg = pUdp->UDP_CSR[endpoint]; \\r
+ reg = pUdp->UDP_CSR[(endpoint)]; \\r
reg |= REG_NO_EFFECT_1_ALL; \\r
reg &= ~(flags); \\r
- pUdp->UDP_CSR[endpoint] = reg; \\r
- while ( (pUdp->UDP_CSR[endpoint] & (flags)) == (flags)); \\r
-}\r
+ pUdp->UDP_CSR[(endpoint)] = reg; \\r
+ while ( (pUdp->UDP_CSR[(endpoint)] & (flags)) == (flags)); \\r
+} \\r
\r
// reset flags in the UDP_CSR register and waits for synchronization\r
#define UDP_SET_EP_FLAGS(endpoint, flags) { \\r
volatile unsigned int reg; \\r
- reg = pUdp->UDP_CSR[endpoint]; \\r
+ reg = pUdp->UDP_CSR[(endpoint)]; \\r
reg |= REG_NO_EFFECT_1_ALL; \\r
reg |= (flags); \\r
- pUdp->UDP_CSR[endpoint] = reg; \\r
- while ( ( pUdp->UDP_CSR[endpoint] & (flags)) != (flags)); \\r
-}\r
+ pUdp->UDP_CSR[(endpoint)] = reg; \\r
+ while ( ( pUdp->UDP_CSR[(endpoint)] & (flags)) != (flags)); \\r
+} \\r
\r
\r
/* USB standard request code */\r