DetachInterrupt/developers

From Wiring

Jump to: navigation, search
This page is intended as a reference for core developers only, and the content is only changed after a consensus has been reached through discussion of any such changes. Please use the Discussion page to talk about any changes or issues you have with the current implementation.
detachInterrupt()
Classification Hardware interrupt control methods.
Suggested location WInterrupts.h
C++ required No
Timing constraints None
Version introduced 1.0 (0100)
Framework dependencies None
Prototype(s)
void detachInterrupt(uint8_t interruptNum)
Required? Yes
Issues None


Contents

Description

The detachInterrupt() method clears the function used to attend a specific interrupt.

Black Box Input

The number of the external interruption is provided. EXTERNAL_INTERRUPT_0, EXTERNAL_INTERRUPT_1… etc.

Black Box Output

Nothing is returned.

Overloading

None. Single function only.

Notes

It is possible to generate and attend external interrupts on the Wiring hardware. On Wiring v1 boards the external interrupts capable pins are: 0, 1, 2, 3, 36, 37, 38 and 39. On Wiring S board the external interrupts capable pins are: 2, 3 and 18. In addition to being regular digital pins, note that some of these pins are also used for libraries like Wire or Serial/Serial1.

WARNING: you should avoid doing long procedures in interrupt routines.

Proposed Changes

Personal tools