repositories
/
mTask.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
shares are dynamically allocated as well:)
[mTask.git]
/
client
/
mem.c
1
#include <stdlib.h>
2
#include <stdint.h>
3
4
#include
"mem.h"
5
6
uint8_t
mem
[
MEMSIZE
] = {
0
};
7
8
uint8_t
*
mem_top
= &
mem
[
MEMSIZE
-
1
];
9
uint8_t
*
mem_bottom
= &
mem
[
0
];
10
uint8_t
*
mem_task
= &
mem
[
0
];
11
uint8_t
*
mem_sds
= &
mem
[
MEMSIZE
-
1
];
12
13
uint16_t
mem_free
(
void
)
14
{
15
return
mem_sds
-
mem_task
;
16
}