update: remove internal configs, you should get config from usb_config.h
This commit is contained in:
@@ -23,14 +23,6 @@
|
|||||||
|
|
||||||
#define CONFIG_USBHOST_CDC_NCM_ETH_MAX_SEGSZE 1514U
|
#define CONFIG_USBHOST_CDC_NCM_ETH_MAX_SEGSZE 1514U
|
||||||
|
|
||||||
/* eth rx size must be a multiple of 512 or 64 */
|
|
||||||
#ifndef CONFIG_USBHOST_CDC_NCM_ETH_MAX_RX_SIZE
|
|
||||||
#define CONFIG_USBHOST_CDC_NCM_ETH_MAX_RX_SIZE (2048)
|
|
||||||
#endif
|
|
||||||
#ifndef CONFIG_USBHOST_CDC_NCM_ETH_MAX_TX_SIZE
|
|
||||||
#define CONFIG_USBHOST_CDC_NCM_ETH_MAX_TX_SIZE (2048)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_cdc_ncm_rx_buffer[CONFIG_USBHOST_CDC_NCM_ETH_MAX_RX_SIZE];
|
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_cdc_ncm_rx_buffer[CONFIG_USBHOST_CDC_NCM_ETH_MAX_RX_SIZE];
|
||||||
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_cdc_ncm_tx_buffer[CONFIG_USBHOST_CDC_NCM_ETH_MAX_TX_SIZE];
|
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_cdc_ncm_tx_buffer[CONFIG_USBHOST_CDC_NCM_ETH_MAX_TX_SIZE];
|
||||||
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_cdc_ncm_inttx_buffer[16];
|
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_cdc_ncm_inttx_buffer[16];
|
||||||
|
|||||||
7
class/vendor/net/usbh_rtl8152.c
vendored
7
class/vendor/net/usbh_rtl8152.c
vendored
@@ -12,13 +12,6 @@
|
|||||||
|
|
||||||
#define DEV_FORMAT "/dev/rtl8152"
|
#define DEV_FORMAT "/dev/rtl8152"
|
||||||
|
|
||||||
#ifndef CONFIG_USBHOST_RTL8152_ETH_MAX_RX_SIZE
|
|
||||||
#define CONFIG_USBHOST_RTL8152_ETH_MAX_RX_SIZE (16*1024)
|
|
||||||
#endif
|
|
||||||
#ifndef CONFIG_USBHOST_RTL8152_ETH_MAX_TX_SIZE
|
|
||||||
#define CONFIG_USBHOST_RTL8152_ETH_MAX_TX_SIZE (2048)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rtl8152_rx_buffer[CONFIG_USBHOST_RTL8152_ETH_MAX_RX_SIZE];
|
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rtl8152_rx_buffer[CONFIG_USBHOST_RTL8152_ETH_MAX_RX_SIZE];
|
||||||
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rtl8152_tx_buffer[CONFIG_USBHOST_RTL8152_ETH_MAX_TX_SIZE];
|
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rtl8152_tx_buffer[CONFIG_USBHOST_RTL8152_ETH_MAX_TX_SIZE];
|
||||||
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rtl8152_inttx_buffer[2];
|
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rtl8152_inttx_buffer[2];
|
||||||
|
|||||||
@@ -18,14 +18,6 @@ USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rndis_buf[4096];
|
|||||||
#define CONFIG_USBHOST_RNDIS_ETH_MAX_FRAME_SIZE 1514
|
#define CONFIG_USBHOST_RNDIS_ETH_MAX_FRAME_SIZE 1514
|
||||||
#define CONFIG_USBHOST_RNDIS_ETH_MSG_SIZE (CONFIG_USBHOST_RNDIS_ETH_MAX_FRAME_SIZE + 44)
|
#define CONFIG_USBHOST_RNDIS_ETH_MSG_SIZE (CONFIG_USBHOST_RNDIS_ETH_MAX_FRAME_SIZE + 44)
|
||||||
|
|
||||||
/* eth rx size must be a multiple of 512 or 64 */
|
|
||||||
#ifndef CONFIG_USBHOST_RNDIS_ETH_MAX_RX_SIZE
|
|
||||||
#define CONFIG_USBHOST_RNDIS_ETH_MAX_RX_SIZE (2048)
|
|
||||||
#endif
|
|
||||||
#ifndef CONFIG_USBHOST_RNDIS_ETH_MAX_TX_SIZE
|
|
||||||
#define CONFIG_USBHOST_RNDIS_ETH_MAX_TX_SIZE (2048)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rndis_rx_buffer[CONFIG_USBHOST_RNDIS_ETH_MAX_RX_SIZE];
|
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rndis_rx_buffer[CONFIG_USBHOST_RNDIS_ETH_MAX_RX_SIZE];
|
||||||
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rndis_tx_buffer[CONFIG_USBHOST_RNDIS_ETH_MAX_TX_SIZE];
|
static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rndis_tx_buffer[CONFIG_USBHOST_RNDIS_ETH_MAX_TX_SIZE];
|
||||||
// static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rndis_inttx_buffer[16];
|
// static USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_rndis_inttx_buffer[16];
|
||||||
|
|||||||
@@ -18,10 +18,6 @@
|
|||||||
#define INTF_DESC_bInterfaceNumber 2 /** Interface number offset */
|
#define INTF_DESC_bInterfaceNumber 2 /** Interface number offset */
|
||||||
#define INTF_DESC_bAlternateSetting 3 /** Alternate setting offset */
|
#define INTF_DESC_bAlternateSetting 3 /** Alternate setting offset */
|
||||||
|
|
||||||
#ifndef CONFIG_USBDEV_STRING_LANGID
|
|
||||||
#define CONFIG_USBDEV_STRING_LANGID 0x0409
|
|
||||||
#endif
|
|
||||||
|
|
||||||
struct usbd_tx_rx_msg {
|
struct usbd_tx_rx_msg {
|
||||||
uint8_t ep;
|
uint8_t ep;
|
||||||
uint8_t ep_mult;
|
uint8_t ep_mult;
|
||||||
|
|||||||
Reference in New Issue
Block a user