O'Reilly logo

GNU/Linux Rapid Embedded Programming by Rodolfo Giometti

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Managing GPIO into the kernel

Having the ability to manage one or more GPIO lines from the user space is really important because it drastically simplifies the developer's job, but in some circumstances, that is not enough to solve a task. As you already saw in Chapter 3 , C Compiler, Device Drivers, and Useful Developing TechniquesWriting our own Device Driver , where we introduced a kernel driver involving two GPIO lines, it was clear that if the pulse events go over a certain frequency, a user-space application is not suitable anymore and the management must be moved into the kernel.

However, the speed is not the only reason why we should move into the kernel space; another good reason is the abstraction level that the kernel offers to developers. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required