stm32 HAL 关闭spi通讯
时间: 2023-09-04 18:06:21 浏览: 244
要关闭STM32的SPI通信,可以使用HAL库提供的函数来实现。首先,需要调用HAL_SPI_DeInit()函数来关闭SPI外设。然后,可以选择关闭SPI的时钟,可以通过设置相关寄存器来实现,具体的操作可以参考相应的STM32的参考手册。<span class="em">1</span><span class="em">2</span>
#### 引用[.reference_title]
- *1* [spi.zip_STM32 HAL SPI_spi_stm32 SPI hal_stm32 hal 库 spi_stm32](https://download.csdn.net/download/weixin_42665255/86204044)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [(2条消息) STM32HAL库使用SPI驱动1.44寸TFTLCD_geekYatao-CSDN博客.mhtml](https://download.csdn.net/download/qq_52162624/87070120)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文