VCP fix from cleanflight PR#2120 by ledvinap
This commit is contained in:
parent
fefd34d05a
commit
33f8c76a96
|
@ -228,8 +228,8 @@ enum EP_BUF_NUM
|
||||||
/* GetDADDR */
|
/* GetDADDR */
|
||||||
#define _GetDADDR() ((__IO uint16_t) *DADDR)
|
#define _GetDADDR() ((__IO uint16_t) *DADDR)
|
||||||
|
|
||||||
/* GetBTABLE */
|
/* GetBTABLE ; clear low-order bits explicitly to avoid problems in gcc 5.x */
|
||||||
#define _GetBTABLE() ((__IO uint16_t) *BTABLE)
|
#define _GetBTABLE() (((__IO uint16_t) *BTABLE) & ~0x07)
|
||||||
|
|
||||||
/* SetENDPOINT */
|
/* SetENDPOINT */
|
||||||
#define _SetENDPOINT(bEpNum,wRegValue) (*(EP0REG + bEpNum)= \
|
#define _SetENDPOINT(bEpNum,wRegValue) (*(EP0REG + bEpNum)= \
|
||||||
|
|
Loading…
Reference in New Issue