How to use SPI1
How to use SPI1
I do not want to use UART SHELL to do instruction exchange interface, but want to change to SPI1, how to achieve
Re: How to use SPI1
Too bad
The UART interface is quite nice and usable and there is even the ui_messages interface which is supported by many programs and libraries.
First design the message format you want to have. And keep VS1005 as master and resolution word based. Playing with bytes is road to frustration. Then import devHwSpi.c and .h to project. Call CreateDevHwSpi() correctly, and you get FILE* pointer. With that you can fread() and fwrite().
XCS is controlled with ioctl(fp, IOCTL_START_FRAME, 0) and ioctl(fp, IOCTL_END_FRAME)
If I had to reinvent this wheel, I would probably write a driver with some kind of interface which would provide some file pointer and a ioctl() interface.

First design the message format you want to have. And keep VS1005 as master and resolution word based. Playing with bytes is road to frustration. Then import devHwSpi.c and .h to project. Call CreateDevHwSpi() correctly, and you get FILE* pointer. With that you can fread() and fwrite().
XCS is controlled with ioctl(fp, IOCTL_START_FRAME, 0) and ioctl(fp, IOCTL_END_FRAME)
If I had to reinvent this wheel, I would probably write a driver with some kind of interface which would provide some file pointer and a ioctl() interface.
Re: How to use SPI1
I want to use SPI interrupt server call directly, do not want to use the driver way
Re: How to use SPI1
There is intdemo solution in roots and sources. It has template for SPI1 You can start with it.