Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 749 Bytes

exercise.md

File metadata and controls

28 lines (17 loc) · 749 Bytes
layout title parent
post
8.4 Exercise
8. Interrupts

Button-interrupt

GPIO-input-interrupt

Configure an interrupt on a button press.

1 thread running continuously putting out "loop message" every second

on button press: print out "isr message"

Zephyr docs Example 1 Example 2

User button and LED aliases can be found in the devicetree file build/zephyr/zephyr.dts.

button-interrupt-alias

Expected output:

button-interrupt-output