diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2020-11-21 23:41:47 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2020-11-21 23:41:47 -0700 |
commit | ebb9123c00d1e9629376b6f0a2f1f4e7e550c2af (patch) | |
tree | e2888acf6c7890adc8606af8ad563481343b7ff4 /02-usart/src/mem.c | |
parent | a922e19f41e25a4b9c77e95c6b5d736609dfb9f5 (diff) | |
download | stm32l4-ebb9123c00d1e9629376b6f0a2f1f4e7e550c2af.tar.gz stm32l4-ebb9123c00d1e9629376b6f0a2f1f4e7e550c2af.tar.bz2 stm32l4-ebb9123c00d1e9629376b6f0a2f1f4e7e550c2af.zip |
Some comment-changes to mem.c
Diffstat (limited to '02-usart/src/mem.c')
-rw-r--r-- | 02-usart/src/mem.c | 6 |
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; }; |