0

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...

asked Jun 8, 2018 at 23:41
1
  • download a text editor like 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 Commented Jun 9, 2018 at 6:20

1 Answer 1

4

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

answered Jun 9, 2018 at 0:15
3
  • Thank you! Never knew I could find these files in the install! Commented Jun 9, 2018 at 0:29
  • 1
    How could you compile them if they weren't there? Commented Jun 9, 2018 at 0:31
  • Online: github.com/arduino/ArduinoCore-avr/blob/master/cores/arduino/… Commented Jun 9, 2018 at 17:06

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.