Yeah Giedrus, your code is very portable and I have changed almost nothing, excepted the MemoryManager's part.
I didn't find the sources of this lib, so I simply replaced by MemoryManager_malloc by malloc, MemoryManager_free by free and so on
. So far, it works. I don't know if it could generate edge effects. I'll see.
Can you tell me where I can found the sources of MemoryManager ? I'll try to integrate it to keep SFP unchanged.
Now, I have to implement all the functions for GPIOs, SPI, PWM, interrupts, etc. But this part is not directly related to the SFP library.