Interface BB with SC16IS750

Hello
I am new to BBB and C programming. i Wrote this program to interface SPI to UART ic SC16IS750.
When i run this program this is my output.

ubuntu@arm:~$ ./Hello
0 0 0 0 0 0 0 0 0 255 255 255 0 � ubuntu@arm:~$

Please help.

SPI_test10.c (2.79 KB)