I don't want to run this on Arduino. I am running this on a Xilinx Spartan 6 running a microblaze. I came to this forum because i know alot person use this in the Arduino community. But the code set I found for arduino was not easily portable. This set of codes are.
Also the I am running this on top an RTOS and the. I'll just create a wrapper function for the serial calls they have. And replace all the memory allocation with RTOS specific memory allocation.
I found what I need so this post could be closed.
Thanks