Loading...
Searching...
No Matches
Native

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

Author
Ludwig Knüpfer ludwi.nosp@m.g.kn.nosp@m.uepfe.nosp@m.r@fu.nosp@m.-berl.nosp@m.in.d.nosp@m.e

Modules

 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.
 

Files

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.
 

Macros

#define CPU_HAS_UNALIGNED_ACCESS
 The CPU supports unaligned memory access.
 

Functions

static uintptr_t cpu_get_caller_pc (void)
 Gets the address the callee will return to.
 
typedef void(* _native_callback_t) (void)
 Prototype for native's internal callbacks.
 
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

◆ CPU_HAS_UNALIGNED_ACCESS

#define CPU_HAS_UNALIGNED_ACCESS

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.

Author
Ludwig Knüpfer ludwi.nosp@m.g.kn.nosp@m.uepfe.nosp@m.r@fu.nosp@m.-berl.nosp@m.in.d.nosp@m.e

Definition at line 74 of file native_internal.h.

Function Documentation

◆ cpu_get_caller_pc()

static uintptr_t cpu_get_caller_pc ( void  )
inlinestatic

Gets the address the callee will return to.

Definition at line 40 of file cpu.h.