interrupts()/noInterrupts()

Abstract

These functions enable or disable the interrupts.

Source Code

The bitRead()/bitSet()/bitClear()/bitWrite() are defined in hardware/arduino/avr/cores/arduino/Arduino.h as below.

1
2
#define interrupts() sei()
#define noInterrupts() cli()

The interrupts()/noInterrupts() are converted to sei() and cli() respectively.

They are assembler instruction that enables or disables the interrupts.

Version

Arduino AVR Boards 1.8.6

Last Update

March 21, 2023

inserted by FC2 system