Playing with Arduino
A page to record my playing with Arduino
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 core 1.8.3

Last Update

May 15, 2021

inserted by FC2 system