In this lesson, we will examine how hardware is described in nRF Connect SDK, whether it is a development kit (DK), a System on Chip (SoC), a System in a Package (SiP) or a module. Interaction between applications and hardware is done through pieces of software called device drivers, and we will explain the device driver model used in nRF Connect SDK. We will use the General-Purpose Input/Output (GPIO) hardware peripheral and driver as a case study. We will do a line-by-line walkthrough of the blinky
sample that we flashed on the board in the previous lesson.
In the exercise section of this lesson, we will learn how to use the GPIO peripheral to control LEDs and read the status of buttons using both polling and interrupts methods.
<zephyr/
devicetree.h>
.dts
.dtsi
(.yaml)
and the compatible property <zephyr/
device.h>
<zephyr/drivers/gpio.h>