second commit

Work exchange data  from fpga to mk. Add semaphore and mutex for read
bufer from fpga