Commit a3050c

2026-03-29 13:57:47 Bob Green: -/-
programming/handling interrupts.md ..
@@ 1,3 1,7 @@
# Handling Interrupts
- This actually is very simple. gcc provides the means to mark a function as an interrupt service routine, namely `__attribute__(interrupt)`
+ This actually is very simple. gcc provides the means to mark a function as an interrupt service routine, namely prefixing a function with `__attribute__(interrupt)`. So, something like this:
+ ```c
+ __attribute__((interrupt)) duart_interrupt(void) {
+ /* Handle the interrupt */
+ ```
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9