All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
cpu_conf.h File Reference

Native CPU configuration. More...

Detailed Description

Native CPU configuration.

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 in file cpu_conf.h.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

#define THREAD_STACKSIZE_DEFAULT   (8192)
 CPU-specific default stack sizes.
 
#define THREAD_STACKSIZE_IDLE   (THREAD_STACKSIZE_DEFAULT)
 Default size of idle thread stack.
 
#define THREAD_EXTRA_STACKSIZE_PRINTF   (4096)
 Extra stack buffer capacity needed for printf
 
#define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT   (4096)
 Extra stack buffer capacity needed for printf in floating-point operations.
 
#define THREAD_STACKSIZE_MINIMUM   (THREAD_STACKSIZE_DEFAULT)
 Minimum thread size.
 
#define ISR_STACKSIZE   (THREAD_STACKSIZE_DEFAULT)
 Size of stack used in ISR context.
 

Networking constants

#define NATIVE_ETH_PROTO   0x1234
 Native internal Ethernet protocol number.
 

Native flash emulation

Use unusual parameters to trigger edge cases

#define FLASHPAGE_SIZE   (512)
 Size of a single emulated flash page.
 
#define FLASHPAGE_NUMOF   (32)
 Total number of emulated flash pages.
 
#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT   (8)
 Flashpage alignment.
 
#define FLASHPAGE_WRITE_BLOCK_SIZE   (16)
 Flashpage block size.
 
#define FLASHPAGE_ERASE_STATE   (0x0)
 Value of bytes in erased flash.
 
#define CPU_FLASH_BASE   ((uintptr_t)_native_flash)
 Base buffer pointer to emulated flash.
 
char _native_flash [FLASHPAGE_SIZE *FLASHPAGE_NUMOF]
 Emulated flash buffer.