llvm-mos-sdk
Macros
peekpoke.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define POKE(addr, val)   (*(volatile unsigned char*) (addr) = (val))
 
#define POKEW(addr, val)   (*(volatile unsigned*) (addr) = (val))
 
#define PEEK(addr)   (*(volatile unsigned char*) (addr))
 
#define PEEKW(addr)   (*(volatile unsigned*) (addr))
 

Macro Definition Documentation

◆ PEEK

#define PEEK (   addr)    (*(volatile unsigned char*) (addr))

◆ PEEKW

#define PEEKW (   addr)    (*(volatile unsigned*) (addr))

◆ POKE

#define POKE (   addr,
  val 
)    (*(volatile unsigned char*) (addr) = (val))

◆ POKEW

#define POKEW (   addr,
  val 
)    (*(volatile unsigned*) (addr) = (val))