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
/*
2
* Copyright (C) 2013, Freie Universitaet Berlin (FUB). All rights reserved.
3
*
4
* This file is subject to the terms and conditions of the GNU Lesser
5
* General Public License v2.1. See the file LICENSE in the top level
6
* directory for more details.
7
*/
8
9
#ifndef CPU_CONF_H
10
#define CPU_CONF_H
11
12
#ifdef __cplusplus
13
extern
"C"
{
14
#endif
15
36
#define __FOPEN_MAX__ 4
37
#define __FILENAME_MAX__ 12
43
#define IRQ_API_INLINED (1)
44
49
#define THREAD_EXTRA_STACKSIZE_PRINTF (512)
50
51
#ifndef THREAD_STACKSIZE_DEFAULT
52
#define THREAD_STACKSIZE_DEFAULT (1024)
53
#endif
54
55
#ifndef THREAD_STACKSIZE_IDLE
56
#define THREAD_STACKSIZE_IDLE (160)
57
#endif
64
/* The idle stack of '160' is not enough to do the 'msg_receive'.
65
* It currently used '164' bytes. */
66
#define CONFIG_PTHREAD_REAPER_BASE_STACKSIZE (2*THREAD_STACKSIZE_IDLE)
73
#define CC_CONF_INLINE inline
74
#define CC_CONF_USED __attribute__((used))
75
#define CC_CONF_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
76
#define CC_CONF_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
82
#define PUF_SRAM_ATTRIBUTES __attribute__((used, section(".noinit")))
83
88
#define UND_STACKSIZE (4)
95
#define ABT_STACKSIZE (4)
102
#ifndef ISR_STACKSIZE
103
#define ISR_STACKSIZE (400)
104
#endif
111
#define FIQ_STACKSIZE (64)
118
#define SVC_STACKSIZE (400)
125
#define USR_STACKSIZE (4096)
132
#define NUM_HEAPS (4)
133
138
#define BACKUP_RAM __attribute__((section(".backup.bss")))
139
144
#define BACKUP_RAM_DATA __attribute__((section(".backup.data")))
145
149
#define PERIPH_FLASHPAGE_CUSTOM_PAGESIZES
150
154
#define CPU_FLASH_BASE (0x0U)
155
160
#define PERIPH_FLASHPAGE_NEEDS_FLASHPAGE_ADDR
161
#define PERIPH_FLASHPAGE_NEEDS_FLASHPAGE_PAGE
162
163
#define FLASHPAGE_NUMOF (27)
164
#define FLASHPAGE_WRITE_BLOCK_SIZE (256)
165
#define FLASHPAGE_WRITE_BLOCK_ALIGNMENT (256)
168
#ifdef __cplusplus
169
}
170
#endif
171
173
#endif
/* CPU_CONF_H */
Generated on Sat Nov 23 2024 01:58:06 by
1.9.8