https://github.com/embeddedcrab/cust_mem_alloc_freertos_cpp
C++ Custom Memory Allocator using FreeRTOS Heap
https://github.com/embeddedcrab/cust_mem_alloc_freertos_cpp
cpp custom-memory-allocator freertos freertos-memory freertos-memory-allocator memory-allocator memory-management
Last synced: 4 months ago
JSON representation
C++ Custom Memory Allocator using FreeRTOS Heap
- Host: GitHub
- URL: https://github.com/embeddedcrab/cust_mem_alloc_freertos_cpp
- Owner: embeddedcrab
- License: gpl-3.0
- Created: 2022-02-06T17:54:41.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-06T18:37:51.000Z (over 3 years ago)
- Last Synced: 2025-01-17T13:50:58.780Z (5 months ago)
- Topics: cpp, custom-memory-allocator, freertos, freertos-memory, freertos-memory-allocator, memory-allocator, memory-management
- Language: C++
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C++ Custom Memory Allocator with FreeRTOS Heap
C++ Custom Memory Allocator using FreeRTOS HeapIf you are working on an embedded project which utilizes FreeRTOS with C++ then this would be interesting to you.
It is a Custom Memory Allocator which uses FreeRTOS Heap internally for Dynamic Memory Allocation/Usage.
You can use it with C++ STL functionalities such as; vector, set, shared pointer, map etc..
An example is given for vectors in main source file [main.cpp].
### Usage of Custom Memory Allocator
I have used FreeRTOS Heap5 for this project and for this i am initializing dynamic memory using malloc and using that memory region.
If you are working on Micro-Controller then you can define a particular RAM Memory region which FreeRTOS Heap shall use.
[I tested it using mingw64 Compiler on Windows system].Explore it, you will definitely find it useful. Happy to help & Share.
Cheers :-)!