summaryrefslogtreecommitdiff
path: root/fw/fe310/eos/eve/eve_platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'fw/fe310/eos/eve/eve_platform.c')
-rw-r--r--fw/fe310/eos/eve/eve_platform.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/fw/fe310/eos/eve/eve_platform.c b/fw/fe310/eos/eve/eve_platform.c
index e64d326..7f1b775 100644
--- a/fw/fe310/eos/eve/eve_platform.c
+++ b/fw/fe310/eos/eve/eve_platform.c
@@ -61,3 +61,16 @@ void eve_platform_init(void) {
eos_spi_dev_set_div(EOS_DEV_DISP, 4);
}
+
+#include <stdio.h>
+
+void *eve_malloc(size_t size) {
+ void *p = malloc(size);
+ printf("MALLOC:%p %d\n", p, size);
+ return p;
+}
+
+void eve_free(void *p) {
+ printf("FREE:%p\n", p);
+ free(p);
+}