Home
last modified time | relevance | path

Searched refs:USBx (Results 1 – 25 of 100) sorted by relevance

1234

/hal_stm32-latest/stm32cube/stm32g0xx/drivers/src/
Dstm32g0xx_ll_usb.c57 static HAL_StatusTypeDef USB_CoreReset(USB_DRD_TypeDef *USBx);
59 static HAL_StatusTypeDef USB_HC_BULK_DB_StartXfer(USB_DRD_TypeDef *USBx,
64 static HAL_StatusTypeDef USB_HC_ISO_DB_StartXfer(USB_DRD_TypeDef *USBx,
74 static HAL_StatusTypeDef USB_CoreReset(USB_DRD_TypeDef *USBx) in USB_CoreReset() argument
77 USBx->CNTR &= ~USB_CNTR_HOST; in USB_CoreReset()
80 USBx->CNTR |= USB_CNTR_USBRST; in USB_CoreReset()
92 HAL_StatusTypeDef USB_CoreInit(USB_DRD_TypeDef *USBx, USB_DRD_CfgTypeDef cfg) in USB_CoreInit() argument
97 if (USBx == NULL) in USB_CoreInit()
103 ret = USB_CoreReset(USBx); in USB_CoreInit()
106 USBx->ISTR = 0U; in USB_CoreInit()
[all …]
/hal_stm32-latest/stm32cube/stm32c0xx/drivers/src/
Dstm32c0xx_ll_usb.c57 static HAL_StatusTypeDef USB_CoreReset(USB_DRD_TypeDef *USBx);
59 static HAL_StatusTypeDef USB_HC_BULK_DB_StartXfer(USB_DRD_TypeDef *USBx,
64 static HAL_StatusTypeDef USB_HC_ISO_DB_StartXfer(USB_DRD_TypeDef *USBx,
74 static HAL_StatusTypeDef USB_CoreReset(USB_DRD_TypeDef *USBx) in USB_CoreReset() argument
77 USBx->CNTR &= ~USB_CNTR_HOST; in USB_CoreReset()
80 USBx->CNTR |= USB_CNTR_USBRST; in USB_CoreReset()
92 HAL_StatusTypeDef USB_CoreInit(USB_DRD_TypeDef *USBx, USB_DRD_CfgTypeDef cfg) in USB_CoreInit() argument
97 if (USBx == NULL) in USB_CoreInit()
103 ret = USB_CoreReset(USBx); in USB_CoreInit()
106 USBx->ISTR = 0U; in USB_CoreInit()
[all …]
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/src/
Dstm32h5xx_ll_usb.c57 static HAL_StatusTypeDef USB_CoreReset(USB_OTG_GlobalTypeDef *USBx);
83 HAL_StatusTypeDef USB_CoreInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) in USB_CoreInit() argument
90 USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_TSDPS); in USB_CoreInit()
94 ret = USB_CoreReset(USBx); in USB_CoreInit()
98 USBx->GAHBCFG |= USB_OTG_GAHBCFG_HBSTLEN_2; in USB_CoreInit()
99 USBx->GAHBCFG |= USB_OTG_GAHBCFG_DMAEN; in USB_CoreInit()
105 USBx->GUSBCFG |= USB_OTG_GUSBCFG_PHYSEL; in USB_CoreInit()
108 ret = USB_CoreReset(USBx); in USB_CoreInit()
113 USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; in USB_CoreInit()
118 USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); in USB_CoreInit()
[all …]
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/src/
Dstm32u5xx_ll_usb.c57 static HAL_StatusTypeDef USB_CoreReset(USB_OTG_GlobalTypeDef *USBx);
83 HAL_StatusTypeDef USB_CoreInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) in USB_CoreInit() argument
91 USBx->GUSBCFG &= ~(USB_OTG_GUSBCFG_TSDPS); in USB_CoreInit()
95 ret = USB_CoreReset(USBx); in USB_CoreInit()
99 USBx->GAHBCFG |= USB_OTG_GAHBCFG_HBSTLEN_2; in USB_CoreInit()
100 USBx->GAHBCFG |= USB_OTG_GAHBCFG_DMAEN; in USB_CoreInit()
106 USBx->GUSBCFG |= USB_OTG_GUSBCFG_PHYSEL; in USB_CoreInit()
109 ret = USB_CoreReset(USBx); in USB_CoreInit()
114 USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; in USB_CoreInit()
119 USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); in USB_CoreInit()
[all …]
/hal_stm32-latest/stm32cube/stm32l4xx/drivers/src/
Dstm32l4xx_ll_usb.c57 static HAL_StatusTypeDef USB_CoreReset(USB_OTG_GlobalTypeDef *USBx);
83 HAL_StatusTypeDef USB_CoreInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) in USB_CoreInit() argument
88 USBx->GUSBCFG |= USB_OTG_GUSBCFG_PHYSEL; in USB_CoreInit()
91 ret = USB_CoreReset(USBx); in USB_CoreInit()
96 USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; in USB_CoreInit()
101 USBx->GCCFG &= ~(USB_OTG_GCCFG_PWRDWN); in USB_CoreInit()
114 HAL_StatusTypeDef USB_SetTurnaroundTime(USB_OTG_GlobalTypeDef *USBx, in USB_SetTurnaroundTime() argument
181 USBx->GUSBCFG &= ~USB_OTG_GUSBCFG_TRDT; in USB_SetTurnaroundTime()
182 USBx->GUSBCFG |= (uint32_t)((UsbTrd << 10) & USB_OTG_GUSBCFG_TRDT); in USB_SetTurnaroundTime()
193 HAL_StatusTypeDef USB_EnableGlobalInt(USB_OTG_GlobalTypeDef *USBx) in USB_EnableGlobalInt() argument
[all …]
/hal_stm32-latest/stm32cube/stm32f1xx/drivers/src/
Dstm32f1xx_ll_usb.c57 static HAL_StatusTypeDef USB_CoreReset(USB_OTG_GlobalTypeDef *USBx);
83 HAL_StatusTypeDef USB_CoreInit(USB_OTG_GlobalTypeDef *USBx, USB_OTG_CfgTypeDef cfg) in USB_CoreInit() argument
88 USBx->GUSBCFG |= USB_OTG_GUSBCFG_PHYSEL; in USB_CoreInit()
91 ret = USB_CoreReset(USBx); in USB_CoreInit()
94 USBx->GCCFG |= USB_OTG_GCCFG_PWRDWN; in USB_CoreInit()
106 HAL_StatusTypeDef USB_SetTurnaroundTime(USB_OTG_GlobalTypeDef *USBx, in USB_SetTurnaroundTime() argument
173 USBx->GUSBCFG &= ~USB_OTG_GUSBCFG_TRDT; in USB_SetTurnaroundTime()
174 USBx->GUSBCFG |= (uint32_t)((UsbTrd << 10) & USB_OTG_GUSBCFG_TRDT); in USB_SetTurnaroundTime()
185 HAL_StatusTypeDef USB_EnableGlobalInt(USB_OTG_GlobalTypeDef *USBx) in USB_EnableGlobalInt() argument
187 USBx->GAHBCFG |= USB_OTG_GAHBCFG_GINT; in USB_EnableGlobalInt()
[all …]
/hal_stm32-latest/stm32cube/stm32h5xx/drivers/include/
Dstm32h5xx_ll_usb.h588 #define USB_DRD_SET_CHEP(USBx, bEpChNum, wRegValue) (*(__IO uint32_t *)\ argument
589 … (&(USBx)->CHEP0R + (bEpChNum)) = (uint32_t)(wRegValue))
592 #define USB_DRD_GET_CHEP(USBx, bEpChNum) (*(__IO uint32_t *)(&(USBx)->CHEP0R + (bEpChNu… argument
602 #define USB_DRD_FREE_USER_BUFFER(USBx, bEpChNum, bDir) \ argument
607 USB_DRD_TX_DTOG((USBx), (bEpChNum)); \
612 USB_DRD_RX_DTOG((USBx), (bEpChNum)); \
624 #define USB_DRD_CHEP_TX_SETUP(USBx, bEpChNum) \ argument
628 _wRegVal = USB_DRD_GET_CHEP((USBx), (bEpChNum)) ; \
631 USB_DRD_SET_CHEP((USBx), (bEpChNum), (_wRegVal | USB_CHEP_SETUP)); \
641 #define USB_DRD_CLEAR_CHEP_RX_ERR(USBx, bChNum) \ argument
[all …]
/hal_stm32-latest/stm32cube/stm32u5xx/drivers/include/
Dstm32u5xx_ll_usb.h588 #define USB_DRD_SET_CHEP(USBx, bEpChNum, wRegValue) (*(__IO uint32_t *)\ argument
589 … (&(USBx)->CHEP0R + (bEpChNum)) = (uint32_t)(wRegValue))
592 #define USB_DRD_GET_CHEP(USBx, bEpChNum) (*(__IO uint32_t *)(&(USBx)->CHEP0R + (bEpChNu… argument
602 #define USB_DRD_FREE_USER_BUFFER(USBx, bEpChNum, bDir) \ argument
607 USB_DRD_TX_DTOG((USBx), (bEpChNum)); \
612 USB_DRD_RX_DTOG((USBx), (bEpChNum)); \
624 #define USB_DRD_CHEP_TX_SETUP(USBx, bEpChNum) \ argument
628 _wRegVal = USB_DRD_GET_CHEP((USBx), (bEpChNum)) ; \
631 USB_DRD_SET_CHEP((USBx), (bEpChNum), (_wRegVal | USB_CHEP_SETUP)); \
641 #define USB_DRD_CLEAR_CHEP_RX_ERR(USBx, bChNum) \ argument
[all …]
/hal_stm32-latest/stm32cube/stm32u0xx/drivers/src/
Dstm32u0xx_ll_usb.c57 static HAL_StatusTypeDef USB_CoreReset(USB_DRD_TypeDef *USBx);
64 static HAL_StatusTypeDef USB_CoreReset(USB_DRD_TypeDef *USBx) in USB_CoreReset() argument
67 USBx->CNTR &= ~USB_CNTR_HOST; in USB_CoreReset()
70 USBx->CNTR |= USB_CNTR_USBRST; in USB_CoreReset()
82 HAL_StatusTypeDef USB_CoreInit(USB_DRD_TypeDef *USBx, USB_DRD_CfgTypeDef cfg) in USB_CoreInit() argument
87 if (USBx == NULL) in USB_CoreInit()
93 ret = USB_CoreReset(USBx); in USB_CoreInit()
96 USBx->ISTR = 0U; in USB_CoreInit()
107 HAL_StatusTypeDef USB_EnableGlobalInt(USB_DRD_TypeDef *USBx) in USB_EnableGlobalInt() argument
112 USBx->ISTR = 0U; in USB_EnableGlobalInt()
[all …]
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/src/
Dstm32f3xx_ll_usb.c64 HAL_StatusTypeDef USB_CoreInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_CoreInit() argument
67 UNUSED(USBx); in USB_CoreInit()
84 HAL_StatusTypeDef USB_EnableGlobalInt(USB_TypeDef *USBx) in USB_EnableGlobalInt() argument
89 USBx->ISTR = 0U; in USB_EnableGlobalInt()
98 USBx->CNTR = (uint16_t)winterruptmask; in USB_EnableGlobalInt()
109 HAL_StatusTypeDef USB_DisableGlobalInt(USB_TypeDef *USBx) in USB_DisableGlobalInt() argument
120 USBx->CNTR &= (uint16_t)(~winterruptmask); in USB_DisableGlobalInt()
133 HAL_StatusTypeDef USB_SetCurrentMode(USB_TypeDef *USBx, USB_ModeTypeDef mode) in USB_SetCurrentMode() argument
136 UNUSED(USBx); in USB_SetCurrentMode()
154 HAL_StatusTypeDef USB_DevInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_DevInit() argument
[all …]
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/src/
Dstm32wbxx_ll_usb.c64 HAL_StatusTypeDef USB_CoreInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_CoreInit() argument
67 UNUSED(USBx); in USB_CoreInit()
84 HAL_StatusTypeDef USB_EnableGlobalInt(USB_TypeDef *USBx) in USB_EnableGlobalInt() argument
89 USBx->ISTR = 0U; in USB_EnableGlobalInt()
98 USBx->CNTR = (uint16_t)winterruptmask; in USB_EnableGlobalInt()
109 HAL_StatusTypeDef USB_DisableGlobalInt(USB_TypeDef *USBx) in USB_DisableGlobalInt() argument
120 USBx->CNTR &= (uint16_t)(~winterruptmask); in USB_DisableGlobalInt()
133 HAL_StatusTypeDef USB_SetCurrentMode(USB_TypeDef *USBx, USB_ModeTypeDef mode) in USB_SetCurrentMode() argument
136 UNUSED(USBx); in USB_SetCurrentMode()
154 HAL_StatusTypeDef USB_DevInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_DevInit() argument
[all …]
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/src/
Dstm32f0xx_ll_usb.c64 HAL_StatusTypeDef USB_CoreInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_CoreInit() argument
67 UNUSED(USBx); in USB_CoreInit()
84 HAL_StatusTypeDef USB_EnableGlobalInt(USB_TypeDef *USBx) in USB_EnableGlobalInt() argument
89 USBx->ISTR = 0U; in USB_EnableGlobalInt()
98 USBx->CNTR = (uint16_t)winterruptmask; in USB_EnableGlobalInt()
109 HAL_StatusTypeDef USB_DisableGlobalInt(USB_TypeDef *USBx) in USB_DisableGlobalInt() argument
120 USBx->CNTR &= (uint16_t)(~winterruptmask); in USB_DisableGlobalInt()
133 HAL_StatusTypeDef USB_SetCurrentMode(USB_TypeDef *USBx, USB_ModeTypeDef mode) in USB_SetCurrentMode() argument
136 UNUSED(USBx); in USB_SetCurrentMode()
154 HAL_StatusTypeDef USB_DevInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_DevInit() argument
[all …]
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/src/
Dstm32l5xx_ll_usb.c64 HAL_StatusTypeDef USB_CoreInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_CoreInit() argument
67 UNUSED(USBx); in USB_CoreInit()
84 HAL_StatusTypeDef USB_EnableGlobalInt(USB_TypeDef *USBx) in USB_EnableGlobalInt() argument
89 USBx->ISTR = 0U; in USB_EnableGlobalInt()
98 USBx->CNTR = (uint16_t)winterruptmask; in USB_EnableGlobalInt()
109 HAL_StatusTypeDef USB_DisableGlobalInt(USB_TypeDef *USBx) in USB_DisableGlobalInt() argument
120 USBx->CNTR &= (uint16_t)(~winterruptmask); in USB_DisableGlobalInt()
133 HAL_StatusTypeDef USB_SetCurrentMode(USB_TypeDef *USBx, USB_ModeTypeDef mode) in USB_SetCurrentMode() argument
136 UNUSED(USBx); in USB_SetCurrentMode()
154 HAL_StatusTypeDef USB_DevInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_DevInit() argument
[all …]
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/src/
Dstm32g4xx_ll_usb.c64 HAL_StatusTypeDef USB_CoreInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_CoreInit() argument
67 UNUSED(USBx); in USB_CoreInit()
84 HAL_StatusTypeDef USB_EnableGlobalInt(USB_TypeDef *USBx) in USB_EnableGlobalInt() argument
89 USBx->ISTR = 0U; in USB_EnableGlobalInt()
98 USBx->CNTR = (uint16_t)winterruptmask; in USB_EnableGlobalInt()
109 HAL_StatusTypeDef USB_DisableGlobalInt(USB_TypeDef *USBx) in USB_DisableGlobalInt() argument
120 USBx->CNTR &= (uint16_t)(~winterruptmask); in USB_DisableGlobalInt()
133 HAL_StatusTypeDef USB_SetCurrentMode(USB_TypeDef *USBx, USB_ModeTypeDef mode) in USB_SetCurrentMode() argument
136 UNUSED(USBx); in USB_SetCurrentMode()
154 HAL_StatusTypeDef USB_DevInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_DevInit() argument
[all …]
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/src/
Dstm32l1xx_ll_usb.c64 HAL_StatusTypeDef USB_CoreInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_CoreInit() argument
67 UNUSED(USBx); in USB_CoreInit()
84 HAL_StatusTypeDef USB_EnableGlobalInt(USB_TypeDef *USBx) in USB_EnableGlobalInt() argument
89 USBx->ISTR = 0U; in USB_EnableGlobalInt()
98 USBx->CNTR = (uint16_t)winterruptmask; in USB_EnableGlobalInt()
109 HAL_StatusTypeDef USB_DisableGlobalInt(USB_TypeDef *USBx) in USB_DisableGlobalInt() argument
120 USBx->CNTR &= (uint16_t)(~winterruptmask); in USB_DisableGlobalInt()
133 HAL_StatusTypeDef USB_SetCurrentMode(USB_TypeDef *USBx, USB_ModeTypeDef mode) in USB_SetCurrentMode() argument
136 UNUSED(USBx); in USB_SetCurrentMode()
154 HAL_StatusTypeDef USB_DevInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_DevInit() argument
[all …]
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/include/
Dstm32l0xx_hal_pcd.h425 #define PCD_SET_ENDPOINT(USBx, bEpNum, wRegValue) \ argument
426 (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * 2U)) = (uint16_t)(wRegValue))
429 #define PCD_GET_ENDPOINT(USBx, bEpNum) (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * … argument
439 #define PCD_SET_EPTYPE(USBx, bEpNum, wType) \ argument
440 (PCD_SET_ENDPOINT((USBx), (bEpNum), \
441 … ((PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_MASK) | (wType) | USB_EP_CTR_TX | USB_EP_CTR_RX)))
450 #define PCD_GET_EPTYPE(USBx, bEpNum) (PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_FIELD) argument
459 #define PCD_FREE_USER_BUFFER(USBx, bEpNum, bDir) \ argument
464 PCD_TX_DTOG((USBx), (bEpNum)); \
469 PCD_RX_DTOG((USBx), (bEpNum)); \
[all …]
/hal_stm32-latest/stm32cube/stm32f0xx/drivers/include/
Dstm32f0xx_hal_pcd.h425 #define PCD_SET_ENDPOINT(USBx, bEpNum, wRegValue) \ argument
426 (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * 2U)) = (uint16_t)(wRegValue))
429 #define PCD_GET_ENDPOINT(USBx, bEpNum) (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * … argument
439 #define PCD_SET_EPTYPE(USBx, bEpNum, wType) \ argument
440 (PCD_SET_ENDPOINT((USBx), (bEpNum), \
441 … ((PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_MASK) | (wType) | USB_EP_CTR_TX | USB_EP_CTR_RX)))
450 #define PCD_GET_EPTYPE(USBx, bEpNum) (PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_FIELD) argument
459 #define PCD_FREE_USER_BUFFER(USBx, bEpNum, bDir) \ argument
464 PCD_TX_DTOG((USBx), (bEpNum)); \
469 PCD_RX_DTOG((USBx), (bEpNum)); \
[all …]
/hal_stm32-latest/stm32cube/stm32l5xx/drivers/include/
Dstm32l5xx_hal_pcd.h425 #define PCD_SET_ENDPOINT(USBx, bEpNum, wRegValue) \ argument
426 (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * 2U)) = (uint16_t)(wRegValue))
429 #define PCD_GET_ENDPOINT(USBx, bEpNum) (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * … argument
439 #define PCD_SET_EPTYPE(USBx, bEpNum, wType) \ argument
440 (PCD_SET_ENDPOINT((USBx), (bEpNum), \
441 … ((PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_MASK) | (wType) | USB_EP_CTR_TX | USB_EP_CTR_RX)))
450 #define PCD_GET_EPTYPE(USBx, bEpNum) (PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_FIELD) argument
459 #define PCD_FREE_USER_BUFFER(USBx, bEpNum, bDir) \ argument
464 PCD_TX_DTOG((USBx), (bEpNum)); \
469 PCD_RX_DTOG((USBx), (bEpNum)); \
[all …]
/hal_stm32-latest/stm32cube/stm32l1xx/drivers/include/
Dstm32l1xx_hal_pcd.h420 #define PCD_SET_ENDPOINT(USBx, bEpNum, wRegValue) \ argument
421 (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * 2U)) = (uint16_t)(wRegValue))
424 #define PCD_GET_ENDPOINT(USBx, bEpNum) (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * … argument
434 #define PCD_SET_EPTYPE(USBx, bEpNum, wType) \ argument
435 (PCD_SET_ENDPOINT((USBx), (bEpNum), \
436 … ((PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_MASK) | (wType) | USB_EP_CTR_TX | USB_EP_CTR_RX)))
445 #define PCD_GET_EPTYPE(USBx, bEpNum) (PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_FIELD) argument
454 #define PCD_FREE_USER_BUFFER(USBx, bEpNum, bDir) \ argument
459 PCD_TX_DTOG((USBx), (bEpNum)); \
464 PCD_RX_DTOG((USBx), (bEpNum)); \
[all …]
/hal_stm32-latest/stm32cube/stm32f3xx/drivers/include/
Dstm32f3xx_hal_pcd.h420 #define PCD_SET_ENDPOINT(USBx, bEpNum, wRegValue) \ argument
421 (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * 2U)) = (uint16_t)(wRegValue))
424 #define PCD_GET_ENDPOINT(USBx, bEpNum) (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * … argument
434 #define PCD_SET_EPTYPE(USBx, bEpNum, wType) \ argument
435 (PCD_SET_ENDPOINT((USBx), (bEpNum), \
436 … ((PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_MASK) | (wType) | USB_EP_CTR_TX | USB_EP_CTR_RX)))
445 #define PCD_GET_EPTYPE(USBx, bEpNum) (PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_FIELD) argument
454 #define PCD_FREE_USER_BUFFER(USBx, bEpNum, bDir) \ argument
459 PCD_TX_DTOG((USBx), (bEpNum)); \
464 PCD_RX_DTOG((USBx), (bEpNum)); \
[all …]
/hal_stm32-latest/stm32cube/stm32wbxx/drivers/include/
Dstm32wbxx_hal_pcd.h425 #define PCD_SET_ENDPOINT(USBx, bEpNum, wRegValue) \ argument
426 (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * 2U)) = (uint16_t)(wRegValue))
429 #define PCD_GET_ENDPOINT(USBx, bEpNum) (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * … argument
439 #define PCD_SET_EPTYPE(USBx, bEpNum, wType) \ argument
440 (PCD_SET_ENDPOINT((USBx), (bEpNum), \
441 … ((PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_MASK) | (wType) | USB_EP_CTR_TX | USB_EP_CTR_RX)))
450 #define PCD_GET_EPTYPE(USBx, bEpNum) (PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_FIELD) argument
459 #define PCD_FREE_USER_BUFFER(USBx, bEpNum, bDir) \ argument
464 PCD_TX_DTOG((USBx), (bEpNum)); \
469 PCD_RX_DTOG((USBx), (bEpNum)); \
[all …]
/hal_stm32-latest/stm32cube/stm32g4xx/drivers/include/
Dstm32g4xx_hal_pcd.h425 #define PCD_SET_ENDPOINT(USBx, bEpNum, wRegValue) \ argument
426 (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * 2U)) = (uint16_t)(wRegValue))
429 #define PCD_GET_ENDPOINT(USBx, bEpNum) (*(__IO uint16_t *)(&(USBx)->EP0R + ((bEpNum) * … argument
439 #define PCD_SET_EPTYPE(USBx, bEpNum, wType) \ argument
440 (PCD_SET_ENDPOINT((USBx), (bEpNum), \
441 … ((PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_MASK) | (wType) | USB_EP_CTR_TX | USB_EP_CTR_RX)))
450 #define PCD_GET_EPTYPE(USBx, bEpNum) (PCD_GET_ENDPOINT((USBx), (bEpNum)) & USB_EP_T_FIELD) argument
459 #define PCD_FREE_USER_BUFFER(USBx, bEpNum, bDir) \ argument
464 PCD_TX_DTOG((USBx), (bEpNum)); \
469 PCD_RX_DTOG((USBx), (bEpNum)); \
[all …]
/hal_stm32-latest/stm32cube/stm32l0xx/drivers/src/
Dstm32l0xx_ll_usb.c64 HAL_StatusTypeDef USB_CoreInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_CoreInit() argument
67 UNUSED(USBx); in USB_CoreInit()
84 HAL_StatusTypeDef USB_EnableGlobalInt(USB_TypeDef *USBx) in USB_EnableGlobalInt() argument
89 USBx->ISTR = 0U; in USB_EnableGlobalInt()
98 USBx->CNTR = (uint16_t)winterruptmask; in USB_EnableGlobalInt()
109 HAL_StatusTypeDef USB_DisableGlobalInt(USB_TypeDef *USBx) in USB_DisableGlobalInt() argument
120 USBx->CNTR &= (uint16_t)(~winterruptmask); in USB_DisableGlobalInt()
133 HAL_StatusTypeDef USB_SetCurrentMode(USB_TypeDef *USBx, USB_ModeTypeDef mode) in USB_SetCurrentMode() argument
136 UNUSED(USBx); in USB_SetCurrentMode()
154 HAL_StatusTypeDef USB_DevInit(USB_TypeDef *USBx, USB_CfgTypeDef cfg) in USB_DevInit() argument
[all …]
/hal_stm32-latest/stm32cube/stm32c0xx/drivers/include/
Dstm32c0xx_ll_usb.h345 #define USB_DRD_SET_CHEP(USBx, bEpChNum, wRegValue) (*(__IO uint32_t *)\ argument
346 … (&(USBx)->CHEP0R + (bEpChNum)) = (uint32_t)(wRegValue))
349 #define USB_DRD_GET_CHEP(USBx, bEpChNum) (*(__IO uint32_t *)(&(USBx)->CHEP0R + (bEpChNu… argument
359 #define USB_DRD_FREE_USER_BUFFER(USBx, bEpChNum, bDir) \ argument
364 USB_DRD_TX_DTOG((USBx), (bEpChNum)); \
369 USB_DRD_RX_DTOG((USBx), (bEpChNum)); \
381 #define USB_DRD_CHEP_TX_SETUP(USBx, bEpChNum) \ argument
385 _wRegVal = USB_DRD_GET_CHEP((USBx), (bEpChNum)) ; \
388 USB_DRD_SET_CHEP((USBx), (bEpChNum), (_wRegVal | USB_CHEP_SETUP)); \
398 #define USB_DRD_CLEAR_CHEP_RX_ERR(USBx, bChNum) \ argument
[all …]
/hal_stm32-latest/stm32cube/stm32g0xx/drivers/include/
Dstm32g0xx_ll_usb.h345 #define USB_DRD_SET_CHEP(USBx, bEpChNum, wRegValue) (*(__IO uint32_t *)\ argument
346 … (&(USBx)->CHEP0R + (bEpChNum)) = (uint32_t)(wRegValue))
349 #define USB_DRD_GET_CHEP(USBx, bEpChNum) (*(__IO uint32_t *)(&(USBx)->CHEP0R + (bEpChNu… argument
359 #define USB_DRD_FREE_USER_BUFFER(USBx, bEpChNum, bDir) \ argument
364 USB_DRD_TX_DTOG((USBx), (bEpChNum)); \
369 USB_DRD_RX_DTOG((USBx), (bEpChNum)); \
381 #define USB_DRD_CHEP_TX_SETUP(USBx, bEpChNum) \ argument
385 _wRegVal = USB_DRD_GET_CHEP((USBx), (bEpChNum)) ; \
388 USB_DRD_SET_CHEP((USBx), (bEpChNum), (_wRegVal | USB_CHEP_SETUP)); \
398 #define USB_DRD_CLEAR_CHEP_RX_ERR(USBx, bChNum) \ argument
[all …]

1234