RTEMS: cpukit/score/cpu/sh/include/rtems/score/sh_io.h File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Macros
sh_io.h File Reference

Macros to Access Memory Mapped Devices on the SH7000-Architecture. More...

Go to the source code of this file.

## Macros
#define | readb(addr) (*(volatile unsigned char *) (addr))
#define | readw(addr) (*(volatile unsigned short *) (addr))
#define | readl(addr) (*(volatile unsigned int *) (addr))
#define | read8(addr) (*(volatile uint8_t *) (addr))
#define | read16(addr) (*(volatile uint16_t *) (addr))
#define | read32(addr) (*(volatile uint32_t *) (addr))
#define | writeb(b, addr) ((*(volatile unsigned char *) (addr)) = (b))
#define | writew(b, addr) ((*(volatile unsigned short *) (addr)) = (b))
#define | writel(b, addr) ((*(volatile unsigned int *) (addr)) = (b))
#define | write8(b, addr) ((*(volatile uint8_t *) (addr)) = (b))
#define | write16(b, addr) ((*(volatile uint16_t *) (addr)) = (b))
#define | write32(b, addr) ((*(volatile uint32_t *) (addr)) = (b))
#define | inb(addr) readb(addr)
#define | outb(b, addr) writeb(b,addr)

## Detailed Description

Macros to Access Memory Mapped Devices on the SH7000-Architecture.

These are some macros to access memory mapped devices on the SH7000-architecture.