libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/stm32/common/st_usbfs_common.h>
Go to the source code of this file.
Macros | |
#define | USB_EP_TX_ADDR(EP) ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 0) * 2)) |
#define | USB_EP_TX_COUNT(EP) ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 2) * 2)) |
#define | USB_EP_RX_ADDR(EP) ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 4) * 2)) |
#define | USB_EP_RX_COUNT(EP) ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 6) * 2)) |
#define | USB_GET_EP_TX_BUFF(EP) (USB_PMA_BASE + (uint8_t *)(USB_GET_EP_TX_ADDR(EP) * 2)) |
#define | USB_GET_EP_RX_BUFF(EP) (USB_PMA_BASE + (uint8_t *)(USB_GET_EP_RX_ADDR(EP) * 2)) |
#define USB_EP_RX_ADDR | ( | EP | ) | ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 4) * 2)) |
Definition at line 47 of file st_usbfs_v1.h.
#define USB_EP_RX_COUNT | ( | EP | ) | ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 6) * 2)) |
Definition at line 50 of file st_usbfs_v1.h.
#define USB_EP_TX_ADDR | ( | EP | ) | ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 0) * 2)) |
Definition at line 41 of file st_usbfs_v1.h.
#define USB_EP_TX_COUNT | ( | EP | ) | ((uint32_t *)(USB_PMA_BASE + (USB_GET_BTABLE + EP * 8 + 2) * 2)) |
Definition at line 44 of file st_usbfs_v1.h.
#define USB_GET_EP_RX_BUFF | ( | EP | ) | (USB_PMA_BASE + (uint8_t *)(USB_GET_EP_RX_ADDR(EP) * 2)) |
Definition at line 58 of file st_usbfs_v1.h.
#define USB_GET_EP_TX_BUFF | ( | EP | ) | (USB_PMA_BASE + (uint8_t *)(USB_GET_EP_TX_ADDR(EP) * 2)) |
Definition at line 55 of file st_usbfs_v1.h.