mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-18 11:42:23 +08:00
[bsp][imxrt1052-evk] update eth driver
- fixed eth send frame bug - code clean
This commit is contained in:
@@ -1345,7 +1345,13 @@ status_t ENET_SendFrame(ENET_Type *base, enet_handle_t *handle, const uint8_t *d
|
||||
#else
|
||||
address = (uint32_t)curBuffDescrip->buffer;
|
||||
#endif /* FSL_FEATURE_MEMORY_HAS_ADDRESS_OFFSET */
|
||||
memcpy((void *)address, data, length);
|
||||
|
||||
{
|
||||
// Change SDK to reduce memory copy
|
||||
extern void pbuf2mem(const uint8_t *data, void *dataptr, uint32_t len);
|
||||
pbuf2mem(data, (void *)address, length);
|
||||
}
|
||||
//memcpy((void *)address, data, length);
|
||||
/* Set data length. */
|
||||
curBuffDescrip->length = length;
|
||||
#ifdef ENET_ENHANCEDBUFFERDESCRIPTOR_MODE
|
||||
|
||||
+324
-305
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user