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

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.

主站蜘蛛池模板: 曲沃县| 孙吴县| 荥阳市| 陆河县| 三原县| 葵青区| 彰化县| 云林县| 当雄县| 凉山| 贵南县| 平罗县| 治县。| 马鞍山市| 桦南县| 綦江县| 凤山县| 陆丰市| 于都县| 西青区| 阿克陶县| 通辽市| 曲阳县| 阳原县| 油尖旺区| 镇康县| 民权县| 甘孜| 永吉县| 黄梅县| 罗田县| 墨竹工卡县| 徐闻县| 鹿泉市| 凌源市| 桂平市| 库尔勒市| 驻马店市| 四会市| 全州县| 航空|