SPI验证
*****************

可以使用开源测试工具spidev_tc.c进行验证，测试命令参考如下。

.. code:: bash

	# 进行SPI内部回环测试(其原理是SPI硬件IP的tx fifo将数据发给rx fifo从而形成回环)

	root@hobot:~# /app/sample/S83_Sample/S83E02_Communication/spi_sample/bin/spidev_tc -D /dev/spidev0.0 -v -s 1000000 -m 3 -l -e 10 -t 1
	spi mode: 0x20
	bits per word: 8
	max speed: 1000000 Hz (1000 KHz)
	userspace spi read and write test, len=10 times=1
	test, times=0
	TX  67 C6 69 73 51 FF 4A EC 29 CD __ __ __ __ __ __ __
	__ __ __ __ __ __ __ __ __ __ __ __ __ __
	__

	RX  67 C6 69 73 51 FF 4A EC 29 CD __ __ __ __ __ __ __
	__ __ __ __ __ __ __ __ __ __ __ __ __ __
	__



