1. 我现在在用3352芯片的SPI1接口,使用SPI1的slave mode与另一个芯片进行通信。我在datasheet:
AM335x and AMIC110 Sitara™ Processors Technical Reference Manual 中的第九章,找到了关于spi0_sclk d0 d1的配置项(Table9-10. CONTROL_MODULE REGISTERS),但是没找到关于SPI1的配置项,请问这是怎么回事?是不是理解为SPI1不能进行“multiplexed with pins of other peripherals in the SoC“?
另外,在mcspiFlash.c的例程中,main函数中有相关的设置,那么我如果用SPI1,是不是就没有这个设置了?
int main(void)
{
volatile unsigned int count = 0x0FFFu;
unsigned int retVal = FALSE;
unsigned char choice = 0;
/* Enable the clocks for McSPI0 module.*/
McSPI0ModuleClkConfig();
/* Perform Pin-Muxing for SPI0 Instance */
McSPIPinMuxSetup(0);//这里进行了设置
/* Perform Pin-Muxing for CS0 of SPI0 Instance */
McSPI0CSPinMuxSetup(chNum);
/* Initialize the UART utility functions */
UARTStdioInit();
UARTPuts("Here the McSPI controller on the SoC communicates with", -1);
UARTPuts(" the SPI Flash.\r\n\r\n", -1);
/* Enable IRQ in CPSR.*/
IntMasterIRQEnable();
2.能否提供一下SPI1 slave mode的初始化流程?