VCP fix from cleanflight PR#2120 by ledvinap

This commit is contained in:
Michael Jakob 2016-06-25 21:47:57 +02:00
parent fefd34d05a
commit 33f8c76a96
1 changed files with 2 additions and 2 deletions

View File

@ -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)= \