Skip to content

Opening book details…

About this document

C Programs for Interrupt Handling and Polling by jkosorio is a document available to read on EtoBox.

This document contains code for two programs - INTERRUPTS.C and POLL.C. INTERRUPTS.C uses interrupts to capture button presses on a PIO and store the value in an edge_capture variable. It defines an interrupt handler function that reads the edge capture register and resets it. The init_SW_pio function initializes the PIO registers, enables interrupts, and registers the interrupt handler. POLL.C continuously polls the switch PIO register and writes the value to the LED PIO without using interrupts.

Author
jkosorio
Language
EN