repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of gitlab.science.ru.nl:mlubbers/mTask
[mTask.git]
/
client
/
mem.c
diff --git
a/client/mem.c
b/client/mem.c
index
f4cdf2c
..
42fb500
100644
(file)
--- a/
client/mem.c
+++ b/
client/mem.c
@@
-1,6
+1,7
@@
#include <stdlib.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdint.h>
+#include "interface.h"
#include "mem.h"
uint8_t mem[MEMSIZE] = {0};
#include "mem.h"
uint8_t mem[MEMSIZE] = {0};
@@
-14,3
+15,11
@@
uint16_t mem_free(void)
{
return mem_sds-mem_task;
}
{
return mem_sds-mem_task;
}
+
+void mem_reset(void)
+{
+ mem_top = &mem[MEMSIZE-1];
+ mem_bottom = &mem[0];
+ mem_task = &mem[0];
+ mem_sds = &mem[MEMSIZE-1];
+}