© Jacob Beningo 2017

Jacob Beningo, Reusable Firmware Development, https://doi.org/10.1007/978-1-4842-3297-2_7

7. HAL Design for GPIO

Jacob Beningo

(1)Linden, Michigan, USA

“Insufficient facts always invite danger.”

—Spock, Star Trek, Season 1, Episode 25 (“Space Seed,” 1968)

GPIO Peripherals Overview

The general-purpose input/output peripheral (GPIO) , also commonly known as the digital input/output peripheral (DIO), is the most commonly used peripheral in all embedded systems. The obvious reason is that the GPIO peripheral is how a microcontroller interacts with the external world around it. Whether the goal is to blink a simple LED by changing the voltage on the pin or to perform a more complex task such as multiplexing the pin to an internal ...

Get Reusable Firmware Development: A Practical Approach to APIs, HALs and Drivers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.