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

Abstract

The _MMIO_WORD() is a macro that dereferences two bytes of data at the specified address.

Source Code

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

1
#define _MMIO_WORD(mem_addr) (*(volatile uint16_t *)(mem_addr))

The input is mem_addr and dereferences its contents.

Version

Arduino 1.8.12/avr-gcc.exe (GCC) 7.3.0

Last Update

April 12, 2020

inserted by FC2 system