Where can I find the code for Arduino's attachInterrupt
function?
A search on the Arduino's Github repo yielded nothing.
I suspect it might be a wrapper for some avr-libc function but nothing in the avr-libc docs stands out to me...
Arduino Stack Exchange is a question and answer site for developers of open-source hardware and software that is compatible with Arduino. It only takes a minute to sign up.
Sign up to join this communityWhere can I find the code for Arduino's attachInterrupt
function?
A search on the Arduino's Github repo yielded nothing.
I suspect it might be a wrapper for some avr-libc function but nothing in the avr-libc docs stands out to me...
It's in the core in WInterrupts.c
On my install it's at:
arduino-1.8.5/hardware/arduino/avr/cores/arduino/WInterrupts.c
Notepad++
..... you can then use it to search for text in folders (directories) ..... search for the text "attachInterrupt" in the arduino install directory .... it will find all files that contain that word ..... get it here notepad-plus-plus.org