© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
S. SmithRISC-V Assembly Language ProgrammingMaker Innovations Serieshttps://doi.org/10.1007/979-8-8688-0137-2_8

8. Programming GPIO Pins

Stephen Smith1  
(1)
Gibsons, BC, Canada
 

Most Single Board Computers have a set of General Purpose I/O (GPIO) pins that can be used to control homemade electronics projects. In this chapter, GPIO ports on a Starfive Visionfive 2 are looked at. Also, programming GPIO pins from Assembly Language will be shown.

An experiment with a breadboard containing several LEDs and resistors is given, so some real code can be written. The GPIO pins will be programmed in two ways: first of all, by using the Linux device driver and secondly, ...

Get RISC-V Assembly Language Programming: Unlock the Power of the RISC-V Instruction Set 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.