diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-22 13:01:42 +0200 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-06-22 13:01:42 +0200 |
commit | bb63040692c94ffa662b0af7eb14f3c5951aa6e6 (patch) | |
tree | 73cc719db8db857ccc012ff2002655bdad400be6 /lib/pbdrv/ext/freertos/pb-mem.c | |
parent | bad32f876ab99fe0820fd310a4826378d0b11fe7 (diff) |
even more doxygen documentation
Diffstat (limited to 'lib/pbdrv/ext/freertos/pb-mem.c')
-rw-r--r-- | lib/pbdrv/ext/freertos/pb-mem.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pbdrv/ext/freertos/pb-mem.c b/lib/pbdrv/ext/freertos/pb-mem.c index b18d79f..6647f05 100644 --- a/lib/pbdrv/ext/freertos/pb-mem.c +++ b/lib/pbdrv/ext/freertos/pb-mem.c @@ -3,24 +3,29 @@ #include "../../pb-mem.h" #include "../../pb-types.h" +/// \ingroup pb_ext_freertos inline void * pb_malloc(size_t sz) { return pvPortMalloc(sz); } +/// \ingroup pb_ext_freertos inline void pb_free(void * ptr) { vPortFree(ptr); } +/// \ingroup pb_ext_freertos __weak inline void * pb_realloc(void * ptr, size_t sz) { return NULL; // shit out of luck (don't use mpack_writer_init_growable) } +/// \ingroup pb_ext_freertos __weak void * pb_memcpy(void * dest, const void * src, size_t sz) { for (size_t offset = 0; offset < sz; offset++) *((char*) dest + offset) = *((char*) src + offset); return dest; } +/// \ingroup pb_ext_freertos __weak int pb_memcmp(const void * a, const void * b, size_t sz) { for (size_t offset = 0; offset < sz; offset++) { int diff = *((char*) a + offset) - *((char*) b + offset); |