Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
cpu_conf.h
Go to the documentation of this file.
1
16
#ifndef CPU_CONF_H
17
#define CPU_CONF_H
18
19
#ifdef __cplusplus
20
extern
"C"
{
21
#endif
22
30
#ifndef THREAD_STACKSIZE_DEFAULT
31
#if (__SIZEOF_POINTER__ == 8)
32
#define THREAD_STACKSIZE_DEFAULT (16384)
33
#else
34
#define THREAD_STACKSIZE_DEFAULT (8192)
35
#endif
36
#endif
37
#ifndef THREAD_STACKSIZE_IDLE
38
#define THREAD_STACKSIZE_IDLE (THREAD_STACKSIZE_DEFAULT)
39
#endif
40
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
41
#define THREAD_EXTRA_STACKSIZE_PRINTF (4096)
42
#endif
43
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT
44
#define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (4096)
45
#endif
46
/* for core/include/thread.h */
47
#ifndef THREAD_STACKSIZE_MINIMUM
48
#define THREAD_STACKSIZE_MINIMUM (THREAD_STACKSIZE_DEFAULT)
49
#endif
50
/* native internal */
51
#ifndef ISR_STACKSIZE
52
#define ISR_STACKSIZE (THREAD_STACKSIZE_DEFAULT)
53
#endif
59
#define NATIVE_ETH_PROTO 0x1234
60
61
#if (defined(CONFIG_GNRC_PKTBUF_SIZE)) && (CONFIG_GNRC_PKTBUF_SIZE < 2048)
62
# undef CONFIG_GNRC_PKTBUF_SIZE
63
# define CONFIG_GNRC_PKTBUF_SIZE (2048)
64
#endif
65
71
#ifndef FLASHPAGE_SIZE
72
#define FLASHPAGE_SIZE (512)
73
#endif
74
#ifndef FLASHPAGE_NUMOF
75
#define FLASHPAGE_NUMOF (32)
76
#endif
77
#ifndef FLASHPAGE_WRITE_BLOCK_ALIGNMENT
78
#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (8)
79
#endif
80
#ifndef FLASHPAGE_WRITE_BLOCK_SIZE
81
#define FLASHPAGE_WRITE_BLOCK_SIZE (16)
82
#endif
83
#ifndef FLASHPAGE_ERASE_STATE
84
#define FLASHPAGE_ERASE_STATE (0x0)
85
#endif
86
87
extern
char
_native_flash[
FLASHPAGE_SIZE
* FLASHPAGE_NUMOF];
88
89
#define CPU_FLASH_BASE ((uintptr_t)_native_flash)
92
#ifdef __cplusplus
93
}
94
#endif
95
96
#endif
/* CPU_CONF_H */
FLASHPAGE_SIZE
#define FLASHPAGE_SIZE
Native Flash emulation Use unusual parameters to trigger edge cases.
Definition
cpu_conf.h:72
Generated on Sat Nov 23 2024 01:58:06 by
1.9.8