Native CPU specific code. More...

Detailed Description

Native CPU specific code.

The native CPU uses system calls to simulate hardware access.

CPU abstraction for the native port

Ludwig Knüpfer


 Linux User Mode GPIO Driver
 Implementation of GPIO access from Linux User Space.
 Linux User Mode SPI Driver
 Implementation of SPI access from Linux User Space.
 Native extra API for EEPROM
 Implementation of EEPROM buffer persistence in file.
 native fs integration
 Access to the host fs from RIOT native.


file  architecture_arch.h
 Architecture details.
file  async_read.h
 Multiple asynchronous read on file descriptors.
file  atomic_utils_arch.h
 Implementation of fast atomic utility functions.
file  cpu_conf.h
 Native CPU configuration.
file  native_cli_eui_provider.h
 Command-line EUI provider for native.
file  periph_conf.h
 Native CPU peripheral configuration.
file  periph_cpu.h
 CPU specific definitions for internal peripheral handling.
file  thread_arch.h
 Implementation of the kernels thread interface.
file  tty_uart.h
 UART implementation based on /dev/tty devices on host.


 The CPU supports unaligned memory access. More...


static uintptr_t cpu_get_caller_pc (void)
 Gets the address the callee will return to. More...
typedef void(* _native_callback_t) (void)
 Prototype for native's internal callbacks. More...
int register_interrupt (int sig, _native_callback_t handler)
 register interrupt handler handler for interrupt sig
int unregister_interrupt (int sig)
 unregister interrupt handler for interrupt sig

Macro Definition Documentation



The CPU supports unaligned memory access.

Even if the underlying architecture does not support it, the kernel will take care of it.

Definition at line 35 of file cpu.h.

Typedef Documentation

◆ _native_callback_t

typedef void(* _native_callback_t) (void)

Prototype for native's internal callbacks.

Ludwig Knüpfer

Definition at line 73 of file native_internal.h.

Function Documentation

◆ cpu_get_caller_pc()

static uintptr_t cpu_get_caller_pc ( void  )

Gets the address the callee will return to.

Definition at line 40 of file cpu.h.