ISR_NAKED in Timer ISR
ISR_NAKED tells the compiler, "Don't add your own register saving code" ISR(TIMER1_COMPA_vect, ISR_NAKED) This is critcal if you're using your own save/restore code because if the compiler adds its o
May 12, 20261 min read
Search for a command to run...
Series
This series is about what I'm learning while building an RTOS in C.
ISR_NAKED tells the compiler, "Don't add your own register saving code" ISR(TIMER1_COMPA_vect, ISR_NAKED) This is critcal if you're using your own save/restore code because if the compiler adds its o
When you write a function, the compiler secretly inject setup code before your first line runs(prologue) and cleanup code before it returns (epilogue). You never see it, it lives in the generated asse
What is a macro? A macro is a text replacement rule defined with #define that swaps names for text before the compiler runs. For Example: #define PI 3.14159 Every time you write "PI" in your code, th