bouffalolab / bouffalo_sdk

BouffaloSDK is the IOT and MCU software development kit provided by the Bouffalo Lab Team, supports all the series of Bouffalo chips. Also it is the combination of bl_mcu_sdk and bl_iot_sdk
Apache License 2.0
349 stars 121 forks source link

BL616 SPI CS by GPIO #186

Closed WGR7 closed 7 months ago

WGR7 commented 7 months ago

Hi,

I have a BL616 as a SPI Master.

I need to know if it's possible to control SPI Chip Select signal by bflb_gpio_set or bflb_gpio_reset. I've tried to reconfigure CS Pin after calling bflb_spi_init, but the cpu got freezed.

Can BL616 SPI Master control a slave by selecting cs signal with bflb_gpio_set/reset?

Regards.

sakumisu commented 7 months ago

All of our spi demo like lcd use software cs and use bflb_gpio_set/reset, you should check again your code by yourself.