Playing with Arduino
A page to record my playing with Arduino
_SFR_MEM_ADDR()

Abstract

The _SFR_MEM_ADDR() is a macro that returns the address of the argument.

Source Code

The _SFR_MEM_ADDR() is defined in hardware/tools/avr/avr/include/avr/sfr_defs.h as below.

1
#define _SFR_MEM_ADDR(sfr) ((uint16_t) &(sfr))

It return the address of the argument.

Version

Arduino 1.8.13/avr-gcc 7.3.0-atmel3.6.1-arduino

Last Update

June 19, 2020

inserted by FC2 system