aboutsummaryrefslogtreecommitdiff
path: root/02-usart/src
diff options
context:
space:
mode:
Diffstat (limited to '02-usart/src')
-rw-r--r--02-usart/src/mem.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/02-usart/src/mem.c b/02-usart/src/mem.c
index 02d59de..27e0fc2 100644
--- a/02-usart/src/mem.c
+++ b/02-usart/src/mem.c
@@ -33,10 +33,12 @@ typedef struct HALLOC_NODE {
union {
uint32_t header;
struct {
- bool used:1; /* Is this memory in use. */
+ /* Is this memory block currently in use (hasn't been hfree'd) */
+ bool used:1;
/* Number of words allocated. Does not include the header. */
uint16_t size:15;
- halloc_off_t prev; /* The location of the last block (in WORDS from offest) */
+ /* The location of the previous block (in WORDS from offest) */
+ halloc_off_t prev;
} PACKED;
};