Home
last modified time | relevance | path

Searched refs:USBD (Results 1 – 3 of 3) sorted by relevance

/hal_nuvoton-3.4.0/m48x/StdDriver/inc/
Dusbd.h226 #define USBD_ENABLE_USB() ((uint32_t)(USBD->ATTR |= 0x7D0))
238 #define USBD_DISABLE_USB() ((uint32_t)(USBD->ATTR &= ~USBD_USB_EN))
250 #define USBD_ENABLE_PHY() ((uint32_t)(USBD->ATTR |= USBD_PHY_EN))
262 #define USBD_DISABLE_PHY() ((uint32_t)(USBD->ATTR &= ~USBD_PHY_EN))
274 #define USBD_SET_SE0() ((uint32_t)(USBD->SE0 |= USBD_DRVSE0))
286 #define USBD_CLR_SE0() ((uint32_t)(USBD->SE0 &= ~USBD_DRVSE0))
298 #define USBD_SET_ADDR(addr) (USBD->FADDR = (addr))
310 #define USBD_GET_ADDR() ((uint32_t)(USBD->FADDR))
325 #define USBD_ENABLE_INT(intr) (USBD->INTEN |= (intr))
337 #define USBD_GET_INT_FLAG() ((uint32_t)(USBD->INTSTS))
[all …]
/hal_nuvoton-3.4.0/m48x/StdDriver/src/
Dusbd.c82 USBD->ATTR = 0x6D0ul; in USBD_Open()
100 USBD->ATTR = 0x7D0ul; in USBD_Start()
420 … if(((USBD->EP[i].CFG & 0xFul) == epNum) && ((g_u32EpStallLock & (1ul << i)) == 0ul)) in USBD_StandardRequest()
422 USBD->EP[i].CFGP &= ~USBD_CFGP_SSTALL_Msk; in USBD_StandardRequest()
423 USBD->EP[i].CFG &= ~USBD_CFG_DSQSYNC_Msk; in USBD_StandardRequest()
634 if (g_usbd_CtrlOutToggle != (USBD->EPSTS0 & USBD_EPSTS0_EPSTS1_Msk)) in USBD_CtrlOut()
636 g_usbd_CtrlOutToggle = USBD->EPSTS0 & USBD_EPSTS0_EPSTS1_Msk; in USBD_CtrlOut()
683 USBD->EP[i].CFG &= ~USBD_CFG_DSQSYNC_Msk; in USBD_SwReset()
/hal_nuvoton-3.4.0/m48x/Devices/M480/Include/
DM480.h407 #define USBD ((USBD_T *) USBD_BASE) macro