匿名
未登录
登录
百问网嵌入式Linux wiki
搜索
查看“Overview of GPIO pins”的源代码
来自百问网嵌入式Linux wiki
名字空间
页面
讨论
更多
更多
页面选项
Read
查看源代码
历史
←
Overview of GPIO pins
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
Each STM32 ball/pin is multiplexed in order to support multiple functions. For example, an STM32 pin can operate in three different modes: GPIO, alternate functions or analog. All pin settings are performed via the [[GPIO internal peripheral]], which can be configured through Linux<sup>®</sup> kernel. This is the purpose of this article. ==Purpose== This article introduces the Linux<sup>®</sup> kernel frameworks dedicated to pin configuration and control. Its purpose is to provide to newcomers some first insights regarding pin management frameworks. Detailed information are provided in the articles referenced in this page. ==System overview== [[File:Pin_overview.png]] ST microprocessor pin can be configured in several modes: * General-purpose input/output (GPIO): controlled by software * Alternate functions: controlled directly by a hardware block. * Analog: controlled directly by a hardware block. Refer to [[GPIO internal peripheral]] for more hardware details. '''Two frameworks''' can be used to configure and control a given pin: '''<big>pinctrl</big>''' and '''<big>GPIOLib</big>'''. They are selected according to pin usage: * '''pinctrl''' is used mainly when a pin is controlled by an internal peripheral. Pinctrl handles the pin configuration and allows assigning a specific feature to a pin. The [[Pinctrl overview]] article provides an overview of the pinctrl framework. * '''GPIOLib''' is used when a pin needs to be controlled dynamically at runtime (GPIO). GPIOLib is used to control a pin by software. The [[GPIOLib overview]] article provides an overview of the GPIOLib framework. In addition, when a pin is used as external interrupt source, '''Irqchip''' framework<ref>[http://bootlin.com/doc/training/linux-kernel/linux-kernel-slides.pdf Interrupt Management training document], ''Linux Kernel and Driver Development''</ref> offers an API allowing the configuration of this interrupt. {{ReviewsComments| FGA W826: Suggestion for future improvement: Make above overview figure click-able with links to these overviews & GPIO internal peripheral}} ==Trainings== Bootlin proposes a detailed presentation of those frameworks: [http://bootlin.com/doc/training/linux-kernel/linux-kernel-slides.pdf character device interface], ''Linux Kernel and Driver Development'' training document, see ''Introduction to pin muxing'' chapter. ==References== <references /> <noinclude> [[Category:IOs pin management|1]] {{PublicationRequestId | 9416 | 2018-10-24 | AnneJ}} </noinclude>
该页面使用的模板:
模板:PublicationRequestId
(
查看源代码
)
模板:ReviewsComments
(
查看源代码
)
返回至
Overview of GPIO pins
。
导航
导航
WIKI首页
官方店铺
资料下载
交流社区
所有页面
所有产品
MPU-Linux开发板
MCU-单片机开发板
Linux开发系列视频
单片机开发系列视频
所有模块配件
Wiki工具
Wiki工具
特殊页面
页面工具
页面工具
用户页面工具
更多
链入页面
相关更改
页面信息
页面日志