performance optimization in fifodepth, ensure memory is allocated by writing something in the beginning

This commit is contained in:
maliakal_d 2020-01-27 18:34:10 +01:00
parent 53e5a097ab
commit ab6f448e1f

View File

@ -56,7 +56,7 @@ void Fifo::CreateFifos(uint32_t fifoItemSize) {
{ //push free addresses into fifoFree fifo
char* buffer = memory;
for (int i = 0; i < fifoDepth; ++i) {
//sprintf(buffer,"memory");
strcpy(buffer, "memory"); //ensures the memory is allocated
FreeAddress(buffer);
buffer += fifoItemSize;
}