diff --git a/class/cdc/usbh_cdc_ecm.c b/class/cdc/usbh_cdc_ecm.c index 9b015add..b115bcf8 100644 --- a/class/cdc/usbh_cdc_ecm.c +++ b/class/cdc/usbh_cdc_ecm.c @@ -232,7 +232,7 @@ void usbh_cdc_ecm_rx_thread(void *argument) int ret; err_t err; struct pbuf *p; -#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT +#if LWIP_TCPIP_CORE_LOCKING_INPUT pbuf_type type = PBUF_ROM; #else pbuf_type type = PBUF_POOL; @@ -271,7 +271,7 @@ find_class: p = pbuf_alloc(PBUF_RAW, g_cdc_ecm_rx_length, type); if (p != NULL) { -#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT +#if LWIP_TCPIP_CORE_LOCKING_INPUT p->payload = g_cdc_ecm_rx_buffer; #else memcpy(p->payload, (uint8_t *)g_cdc_ecm_rx_buffer, g_cdc_ecm_rx_length); diff --git a/class/cdc/usbh_cdc_ncm.c b/class/cdc/usbh_cdc_ncm.c index efbac038..f8cc03f3 100644 --- a/class/cdc/usbh_cdc_ncm.c +++ b/class/cdc/usbh_cdc_ncm.c @@ -258,7 +258,7 @@ void usbh_cdc_ncm_rx_thread(void *argument) int ret; err_t err; struct pbuf *p; -#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT +#if LWIP_TCPIP_CORE_LOCKING_INPUT pbuf_type type = PBUF_ROM; #else pbuf_type type = PBUF_POOL; @@ -321,7 +321,7 @@ find_class: p = pbuf_alloc(PBUF_RAW, ndp16_datagram->wDatagramLength, type); if (p != NULL) { -#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT +#if LWIP_TCPIP_CORE_LOCKING_INPUT p->payload = (uint8_t *)&g_cdc_ncm_rx_buffer[ndp16_datagram->wDatagramIndex]; #else memcpy(p->payload, (uint8_t *)&g_cdc_ncm_rx_buffer[ndp16_datagram->wDatagramIndex], ndp16_datagram->wDatagramLength); diff --git a/class/vendor/net/usbh_asix.c b/class/vendor/net/usbh_asix.c index e6ec22e8..a820f4da 100644 --- a/class/vendor/net/usbh_asix.c +++ b/class/vendor/net/usbh_asix.c @@ -657,7 +657,7 @@ void usbh_asix_rx_thread(void *argument) uint16_t len; uint16_t len_crc; struct pbuf *p; -#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT +#if LWIP_TCPIP_CORE_LOCKING_INPUT pbuf_type type = PBUF_ROM; #else pbuf_type type = PBUF_POOL; @@ -704,7 +704,7 @@ find_class: p = pbuf_alloc(PBUF_RAW, len, type); if (p != NULL) { -#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT +#if LWIP_TCPIP_CORE_LOCKING_INPUT p->payload = (uint8_t *)&g_asix_rx_buffer[4]; #else memcpy(p->payload, (uint8_t *)&g_asix_rx_buffer[4], len); diff --git a/class/vendor/net/usbh_rtl8152.c b/class/vendor/net/usbh_rtl8152.c index 7ff103cb..3711c751 100644 --- a/class/vendor/net/usbh_rtl8152.c +++ b/class/vendor/net/usbh_rtl8152.c @@ -2133,7 +2133,7 @@ void usbh_rtl8152_rx_thread(void *argument) uint16_t len; uint16_t data_offset; struct pbuf *p; -#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT +#if LWIP_TCPIP_CORE_LOCKING_INPUT pbuf_type type = PBUF_ROM; #else pbuf_type type = PBUF_POOL; @@ -2190,7 +2190,7 @@ find_class: p = pbuf_alloc(PBUF_RAW, len, type); if (p != NULL) { -#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT +#if LWIP_TCPIP_CORE_LOCKING_INPUT p->payload = (uint8_t *)&g_rtl8152_rx_buffer[data_offset + sizeof(struct rx_desc)]; #else memcpy(p->payload, (uint8_t *)&g_rtl8152_rx_buffer[data_offset + sizeof(struct rx_desc)], len); diff --git a/class/wireless/usbh_rndis.c b/class/wireless/usbh_rndis.c index 3fa0250d..b1ca36cf 100644 --- a/class/wireless/usbh_rndis.c +++ b/class/wireless/usbh_rndis.c @@ -439,7 +439,7 @@ void usbh_rndis_rx_thread(void *argument) struct pbuf *p; rndis_data_packet_t *pmsg; rndis_data_packet_t temp; -#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT +#if LWIP_TCPIP_CORE_LOCKING_INPUT pbuf_type type = PBUF_ROM; #else pbuf_type type = PBUF_POOL; @@ -492,7 +492,7 @@ find_class: p = pbuf_alloc(PBUF_RAW, pmsg->DataLength, type); if (p != NULL) { void *src = (void *)(g_rndis_rx_buffer + pmg_offset + sizeof(rndis_generic_msg_t) + pmsg->DataOffset); -#ifdef LWIP_TCPIP_CORE_LOCKING_INPUT +#if LWIP_TCPIP_CORE_LOCKING_INPUT p->payload = src; #else memcpy(p->payload, src, pmsg->DataLength);