mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-12-08 12:45:22 -05:00
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:
parent
4d4f8d0d50
commit
0a61cf54e7
14 changed files with 2687 additions and 4 deletions
31
portable/Heap/cluster_group.c
Normal file
31
portable/Heap/cluster_group.c
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue