interrupt.h(3avr)
β¨ NAME β¨
interrupt.h
okay bestie, pull up a chair because this one is literally the blueprint for talking to your microcontroller's interrupt system π
π SYNOPSIS π
β¨ Macros β¨
π₯ Global manipulation of the interrupt flag π₯
so the global interrupt flag lives rent-free in the I bit of the status register (SREG), that's just the facts no cap π«Ά
manipulating interrupts lowkey requires you to pay attention to atomic access to objects that could get altered by code running inside an interrupt context β peep <util/atomic.h> for that one π
and also!! interrupts are frequently getting disabled for stretches of time so certain operations can happen without being disturbed. for all the deets on that, go look at Problems with reordering code, because there's stuff you have to keep in mind about compiler optimizations π§
#define sei()
#define cli()
π¦ Macros for writing interrupt handler functions π¦
#define ISR(vector, attributes)
#define SIGNAL(vector)
#define EMPTY_INTERRUPT(vector)
#define ISR_ALIAS(vector, target_vector)
#define reti()
#define BADISR_vect
πΈ ISR attributes πΈ
#define ISR_BLOCK
#define ISR_NOBLOCK
#define ISR_NAKED
#define ISR_FLATTEN
#define ISR_NOICF
#define ISR_NOGCCISR
#define ISR_ALIASOF(target_vector)
π AUTHOR π
Generated automatically by Doxygen for AVR-LibC from the source code. not a human writing this one, just the robot doing its little thing π€β¨
and that's the whole page, bestie!! this one's from AVR-LibC, Version 2.2.1 π the manpage title is interrupt.h(3avr) and it's your girl AVR-LibC holding it down. periodt ππ¦πΈ
π¦ where this page comes from
- ubuntu resolute: avr-libc 1:2.2.1-1build1 Β· BSD-3-Clause
- ubuntu stonking: avr-libc 1:2.2.1-1build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms