O'Reilly logo

Yocto for Raspberry Pi by Petter Mabäcker, Pierre-Jean Texier

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

Chapter 8. Diving into the Raspberry Pi's Peripherals and Yocto Recipes

In this chapter, we will learn how to handle the SPI and i2c buses of the Raspberry Pi through the Yocto Project. We'll see how to write our own recipe for custom applications.

The SPI bus

The Serial Peripheral Interface (SPI) protocol implements a synchronous serial link between a master and a slave. When a single slave is used, only three signals (and ground) are needed.

The master generates an SCLK (serial clock) clock signal, which is sent to the slave. On some transitions of this clock, the slave will read data using the appointed signal, MOSI (short for master out, slave in), or write it using the signal named MISO (master in, slave out). There are several names, depending ...

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