官术网_书友最值得收藏!

Chapter 6. General Purposes Input Output signals – GPIO

From this chapter, we're going to look more deeply at all the computer peripherals that we can use on our embedded machines, and since the most important and used peripherals are GPIO lines, let's start from them.

The GPIO signals are used for tons of different usages; in fact, even in previous chapters, in order to introduce the basic concepts of embedded computer programming, we could not avoid using them! However, earlier we just used them superficially; now we're going to show their usage in more detail.

First of all, we'll introduce the GPIO lines with a short description, and then we'll see where they are physically located in our embedded machines. Then, we're going to see in detail how we can get access to these lines in a very simple (but efficient) manner and then in a smarter (but a bit more complex) way.

The last step will cover a rapid introduction of the GPIOs management inside the kernel, so we'll look at how we can request and manage these peripherals as simple GPIOs or as a more specific manner as LED devices. In the first part, we'll take a look at GPIOs-related IRQs management, while regarding the LED devices, we'll take a look at the concept of trigger in more detail.

主站蜘蛛池模板: 新民市| 阜阳市| 高碑店市| 扬州市| 三都| 萨嘎县| 平原县| 隆昌县| 龙泉市| 思茅市| 龙泉市| 云霄县| 施甸县| 凌海市| 顺昌县| 德州市| 郁南县| 景德镇市| 鹤峰县| 沂水县| 杭锦旗| 渑池县| 武城县| 龙山县| 永吉县| 永兴县| 黄山市| 大渡口区| 固始县| 青海省| 西和县| 佛山市| 平远县| 盈江县| 望谟县| 奎屯市| 武强县| 萝北县| 辉南县| 驻马店市| 亚东县|