0
const SPIMSP432DMA_HWAttrsV1 spiMSP432DMAHWAttrs[Board_SPICOUNT] = {
    {
        .baseAddr = EUSCI_B1_BASE,
        .bitOrder = EUSCI_B_SPI_MSB_FIRST,
        .clockSource = EUSCI_B_SPI_CLOCKSOURCE_SMCLK,
        .defaultTxBufValue = 0,
        .dmaIntNum = INT_DMA_INT1,
        .intPriority = (~0),
        .rxDMAChannelIndex = DMA_CH3_EUSCIB1RX0,
        .txDMAChannelIndex = DMA_CH2_EUSCIB1TX0,
        .clkPin = SPIMSP432DMA_P6_3_UCB1CLK,
        .simoPin = SPIMSP432DMA_P6_4_UCB1SIMO,
        .somiPin = SPIMSP432DMA_P6_5_UCB1SOMI,
        .stePin = SPIMSP432DMA_P6_2_UCB1STE,
        .pinMode = EUSCI_SPI_4PIN_UCxSTE_ACTIVE_LOW
    },
};

上面的代码是从 TI 的 SYSCONFIG 工具生成的,与 SPI 配置有关。我还没有找到上述表格的任何文档,我希望得到某人的帮助。

4

0 回答 0