STM32F4学习笔记之SPI(使用固件库,非中断方式)(STM32F4 learn the SPI of notes (using the firmware library, non-interrupt mode)).docVIP

  • 80
  • 0
  • 约6.08千字
  • 约 10页
  • 2017-07-21 发布于河南
  • 举报

STM32F4学习笔记之SPI(使用固件库,非中断方式)(STM32F4 learn the SPI of notes (using the firmware library, non-interrupt mode)).doc

STM32F4学习笔记之SPI(使用固件库,非中断方式)(STM32F4 learn the SPI of notes (using the firmware library, non-interrupt mode))

STM32F4学习笔记之SPI(使用固件库,非中断方式)(STM32F4 learn the SPI of notes (using the firmware library, non-interrupt mode)) 1. Enable the corresponding SPI module clock RCC_APB2PeriphClockCmd (RCC_APB2Periph_SPI1, ENABLE) for SPI1 RCC_APB1PeriphClockCmd (RCC_APB1Periph_SPI2, ENABLE) for SPI2 RCC_APB1PeriphResetCmd (RCC_APB1Periph_SPI3, ENABLE) for SPI3. 2. Enable the clock to correspond to GPIO Rcc_ahb1periph-clockcmd () function. (SCK, MOSI, MISO and NSS). 3. Configure the reuse function of corresponding pins GPIO_PinAFConfig (GPIOx GPIO_PinSourcex, GPIO_AF_SPIx); / / pin mapping GPIO_InitStructure. GPIO_O

文档评论(0)

1亿VIP精品文档

相关文档