GPIO_OType
时间: 2023-08-06 10:05:15 浏览: 163
GPIO_OType是GPIO初始化结构体中的一个参数,用于设置引脚的输出类型。在GPIO_InitTypeDef结构体中,GPIO_OType_TypeDef是一个枚举类型,用于定义引脚的输出类型。常见的输出类型有推挽输出(GPIO_OType_PP)和开漏输出(GPIO_OType_OD)。推挽输出是指引脚可以同时输出高电平和低电平,而开漏输出是指引脚只能输出低电平,高电平需要通过外部上拉电阻来实现。根据具体的应用需求,可以选择适合的输出类型来配置GPIO引脚。\[2\]
#### 引用[.reference_title]
- *1* *3* [【STM32标准库】【基础知识】GPIO](https://blog.csdn.net/m0_57585228/article/details/124498831)[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^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [stm32f4 gpio口学习笔记](https://blog.csdn.net/m0_58507443/article/details/124621675)[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^v91^koosearch_v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文