SPI
更改
1、Board.h:修改引脚(其他未修改)
2、board.c:修改BoardGpioInitTable【】
3、添加头文件:SPI.h
4、首先在main()函数中添加代码’
SPI_Handle handle;
SPI_Params params;
SPI_Transaction spiTransaction;
SPI_Params_init(¶ms);
params.bitRate = someNewBitRate;
handle = SPI_open(someSPI_configIndexValue, ¶ms);
SPI_Transaction spiTransaction;
spiTransaction.count = someIntegerValue;
spiTransaction.txBuf = transmitBufferPointer;
spiTransaction.rxBuf = receiveBufferPointer;
SPI_transfer(handle, &spiTransaction);
我的问题是,SPI和UDMA相关的寄存器修改不了,出现错误
Viki Shi:
请参考TI RTOS下的driverlib文档进行UART/SPI的操作: file:///C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/doc/driverlib/ssi_8h_source.html
Viki Shi:
请参考TI RTOS下的driverlib文档进行UART/SPI的操作: file:///C:/ti/tirtos_cc13xx_cc26xx_2_21_01_08/products/cc26xxware_2_24_03_17272/doc/driverlib/ssi_8h_source.html