7#ifndef ZEPHYR_INCLUDE_ARCH_NIOS2_ASM_INLINE_GCC_H_
8#define ZEPHYR_INCLUDE_ARCH_NIOS2_ASM_INLINE_GCC_H_
26 __builtin_stwio((
void *)addr, data);
31 return __builtin_ldwio((
void *)addr);
41 return __builtin_ldbuio((
void *)addr);
51 return __builtin_ldhuio((
void *)addr);
#define ALWAYS_INLINE
Definition common.h:129
static ALWAYS_INLINE void sys_write8(uint8_t data, mm_reg_t addr)
Definition asm_inline_gcc.h:34
static ALWAYS_INLINE uint32_t sys_read32(mm_reg_t addr)
Definition asm_inline_gcc.h:29
static ALWAYS_INLINE uint16_t sys_read16(mm_reg_t addr)
Definition asm_inline_gcc.h:49
static ALWAYS_INLINE void sys_write16(uint16_t data, mm_reg_t addr)
Definition asm_inline_gcc.h:44
static ALWAYS_INLINE uint8_t sys_read8(mm_reg_t addr)
Definition asm_inline_gcc.h:39
static ALWAYS_INLINE void sys_write32(uint32_t data, mm_reg_t addr)
Definition asm_inline_gcc.h:24
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
uintptr_t mm_reg_t
Definition sys_io.h:20