Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2020-12-16 13:31:13 +0300
committerDavid Crocker <dcrocker@eschertech.com>2020-12-16 13:31:13 +0300
commitb546702e73667a4ca9c42d7a8ef2b2c1b65ef29f (patch)
tree310d666c0959ceff1e06d3f8d4e4ebffc9c0e601 /src/Networking
parentbf9b6d50e0285a253e2806c3c694149751475b19 (diff)
Changes to allow RAM to be cached
SD card accesses are slow at present because all transfers are going through the sector buffers
Diffstat (limited to 'src/Networking')
-rw-r--r--src/Networking/LwipEthernet/Lwip/src/core/memp.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Networking/LwipEthernet/Lwip/src/core/memp.c b/src/Networking/LwipEthernet/Lwip/src/core/memp.c
index 352ce5a5..2530b634 100644
--- a/src/Networking/LwipEthernet/Lwip/src/core/memp.c
+++ b/src/Networking/LwipEthernet/Lwip/src/core/memp.c
@@ -76,10 +76,18 @@
#include "lwip/mld6.h"
#define LWIP_MEMPOOL(name,num,size,desc) LWIP_MEMPOOL_DECLARE(name,num,size,desc)
+
+#if SAME70 //dc
+# define LWIP_PBUF_MEMPOOL(name, num, payload, desc) __attribute__((section(".ram_nocache"))) LWIP_MEMPOOL(name, num, (LWIP_MEM_ALIGN_SIZE(sizeof(struct pbuf)) + LWIP_MEM_ALIGN_SIZE(payload)), desc)
+#endif
+
#include "lwip/priv/memp_std.h"
const struct memp_desc *const memp_pools[MEMP_MAX] = {
#define LWIP_MEMPOOL(name,num,size,desc) &memp_ ## name,
+#if SAME70 //dc
+# undef LWIP_PBUF_MEMPOOL
+#endif
#include "lwip/priv/memp_std.h"
};