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.
 

Files

file  architecture_arch.h
 Architecture details.
 
file  async_read.h
 Multiple asynchronus read on file descriptors.
 
file  atomic_utils_arch.h
 Implementation of fast atomic utility functions.
 
file  cpu_conf.h
 Native CPU configuration.
 
file  periph_conf.h
 Native CPU peripheral configuration.
 
file  periph_cpu.h
 CPU specific definitions for internal peripheral handling.
 
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. More...
 

Functions

static void cpu_print_last_instruction (void)
 Prints the address the callee will return to.
 
typedef void(* _native_callback_t) (void)
 Native CPU internal declarations. 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

◆ 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 33 of file cpu.h.

Typedef Documentation

◆ _native_callback_t

typedef void(* _native_callback_t) (void)

Native CPU internal declarations.

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 Prototype for native's internal callbacks

Definition at line 62 of file native_internal.h.