commit id 1825: Heap_x functions now automatically align the start
of the heap without using the portDOUBLE union member.
/* A few bytes might be lost to byte aligning the heap start address. */ #define configADJUSTED_HEAP_SIZE ( configTOTAL_HEAP_SIZE - portBYTE_ALIGNMENT )
Can’t we taken into account if the heap was already aligned before
instead of always sacrificing portBYTE_ALIGNMENT bytes?
Couldn’t this be accomplished by updating e.g. xFreeBytesRemaining
in prvHeapInit() accordingly?
Just my 2 euro cents.