GPIO_Configuration
时间: 2023-09-23 22:02:21 浏览: 106
GPIO_Configuration函数是用来配置GPIO(通用输入输出)的函数。在该函数中,首先定义了一个GPIO_InitTypeDef类型的结构体变量GPIO_InitStructure。然后通过RCC_APB2PeriphClockCmd函数使能GPIOA的时钟。接着将GPIO_Pin_4赋给GPIO_InitStructure结构体中的成员GPIO_Pin,将GPIO_Speed_50MHz赋给GPIO_InitStructure结构体中的成员GPIO_Speed,将GPIO_Mode_Out_PP赋给GPIO_InitStructure结构体中的成员GPIO_Mode。最后调用GPIO_Init函数,将STM32微控制器的GPIOA设备地址和所定义的结构体变量GPIO_InitStructure的地址传入,完成GPIO的初始化配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [STM32微控制器 | 复习四 | GPIO原理及应用](https://blog.csdn.net/m0_46607832/article/details/118162401)[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* [stm学习笔记(二)GPIO](https://blog.csdn.net/a_zhai/article/details/52654987)[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 ]
阅读全文