© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
W. GayBeginning STM32Maker Innovations Serieshttps://doi.org/10.1007/979-8-8688-0199-0_4

4. GPIO

Warren Gay1  
(1)
St. Catharines, ON, Canada
 

In this chapter, you’re going to use the libopencm3 library to build a blink program from source code. This example program demonstrates the configuration and use of GPIO (General Purpose Input/Output). The program presented is a slightly modified version of a libopencm3 example program named miniblink. It has been modified to provide a different timing so that it will be obvious that your newly flashed code is the one executing. After building and running this program, we’ll discuss the GPIO API (Application Programming ...

Get Beginning STM32: Developing with FreeRTOS, libopencm3, and GCC 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.