Implemented heap_6 for C++ real-time applications

I tried to adjust my heap to FreeRTOS. This is my very first commit to FreeRTOS, i don't even know how to compile the kernel.
Maybe You get it running and let me know what You think about it.

https://forums.freertos.org/t/real-time-memory-manager/19685
This commit is contained in:
Sven Bieg 2024-04-13 21:35:03 +02:00
parent 4d4f8d0d50
commit 0a61cf54e7
14 changed files with 2687 additions and 4 deletions

View file

@ -0,0 +1,31 @@
//=================
// cluster_group.c
//=================
// Copyright 2024, Sven Bieg (svenbieg@web.de)
// http://github.com/svenbieg/Heap
//=======
// Using
//=======
#include "cluster_group.h"
#include "parent_group.h"
//========
// Access
//========
size_t cluster_group_get_item_count(cluster_group_t* group)
{
if(!group)
return 0;
cluster_group_t get;
get.value=group->value;
if(get.level==0)
return get.child_count;
parent_group_t* parent_group=(parent_group_t*)group;
return parent_group->item_count;
}