Page 1 of 1

bk7231n spi0(CS=P15 SPI_SCK=P14 SPI_MOSI=P16)发送数据,问题:请问SPI_MISO=P17脚还能复用为普通gpio口吗?

Posted: 2024年 Sep 6日 16:58
by 13825141849

TUYA_SPI_BASE_CFG_T spi_cfg = {0};
spi_cfg.role = TUYA_SPI_ROLE_MASTER;
spi_cfg.mode = TUYA_SPI_MODE1;
spi_cfg.type = TUYA_SPI_AUTO_TYPE;
spi_cfg.databits = TUYA_SPI_DATA_BIT16;
//spi_cfg.bitorder = TUYA_SPI_ORDER_LSB2MSB; // SPI Bit order from MSB to LSB
spi_cfg.freq_hz = DRV_SPI_SPEED;
tkl_spi_init(0,&spi_cfg);

bk7231n spi0(CS=P15 SPI_SCK=P14 SPI_MOSI=P16)发送数据,问题:请问SPI_MISO=P17脚还能复用为普通gpio口吗?


Re: bk7231n spi0(CS=P15 SPI_SCK=P14 SPI_MOSI=P16)发送数据,问题:请问SPI_MISO=P17脚还能复用为普通gpio口吗?

Posted: 2024年 Sep 7日 17:23
by 13825141849

spi0速率最大可以到多少hz?