创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


arduino:avrgcc:mmio_word

_MMIO_WORD()

Abstract

The _MMIO_WORD() is a macro that returns 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.

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

The input is mem_addr and returns its contents.

本页面的其他翻译:
arduino/avrgcc/mmio_word.txt · 最后更改: 2016/12/25 22:15 (外部编辑)