Abstract
The detachInterrupt() resets a function to be called when an external interrupt occurs.
The function is set using detachInterrupt().
Source Code
The detachInterrupt() is defined in hardware/arduino/avr/cores/arduino/WInterrupts.c as below. Only the souce code for Arduino UNO is quoted. The original source code supports many tips using #if’s.
|
|
The input is interruptNum, which is type of uint8_t. It has no output.
|
|
When the interrupt is less than EXTERNAL_NUM_INTERRUPTS, rest of the code is executed.
|
|
Sets the value of register related to the interrupt number to disable the interrupt.
|
|
The EIMSK is a register to enable or disable external interrupts.
Sets nothing to intFunc[] to remove old function. The nothing is a function which dose nothing.
Version
Arduino AVR Boards 1.8.6
Last Update
March 21, 2023