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

This reverts commit ab6f448e1f1f14e4a6ee2bd90922c290a1c7a28a.
This commit is contained in:
maliakal_d 2020-01-27 19:59:18 +01:00
parent ab6f448e1f
commit 9f22c80081

View File

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