This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM5728/RTOS 怎么修改spi_d1和spi_d0的方向

Other Parts Discussed in Thread: AM5728

板子:AM5728(beagleboard x15)

SDK:TI-RTOS 05.03.00.07

使用的是RTOS中的spi的接口,请问如何在RTOS环境中对spi的d1和d2进行修改?

在datasheet中看到可以对MCSPI_SYST寄存器进行配置来修改方向,但是直接对该寄存器配置无法修改方向。

以下是我的配置方法:

SPI_Params_init(&spiParams);
HW_RD_REG32(SPI4_DATA_LINE_REG,cfg);//读取寄存器的值
cfg |=  SPI_D0_BIT;//bit8 置1
cfg &= ~(SPI_D1_BIT);//bit9 置0
HW_WR_REG32(SPI4_DATA_LINE_REG,cfg);//写入新配置
handle = SPI_open(spi_port, &spiParams);