tight 28k

This commit is contained in:
Jeroen Domburg
2017-01-25 17:25:50 +08:00
parent 4745895e22
commit 0db8b00b8a
5 changed files with 243 additions and 205 deletions

View File

@@ -38,6 +38,15 @@
*/
void heap_alloc_caps_init();
/**
* @brief Enable the memory region where the startup stacks are located for allocation
*
* On startup, the pro/app CPUs have a certain stack frame, so we cannot do allocations
* in the regions these stack frames are. When FreeRTOS is completely started, they do
* not use that memory anymore and allocation there can be re-enabled.
*/
void heap_alloc_enable_nonos_stack_tag();
/**
* @brief Allocate a chunk of memory which has the given capabilities
*
@@ -75,4 +84,6 @@ size_t xPortGetFreeHeapSizeCaps( uint32_t caps );
*/
size_t xPortGetMinimumEverFreeHeapSizeCaps( uint32_t caps );
#endif