1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/native: make thread size defines overridable

This commit is contained in:
Alexandre Abadie 2021-05-07 13:12:01 +02:00
parent 08f1f9768d
commit 136c630870
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -28,25 +28,47 @@ extern "C" {
* @{
*/
#ifdef __MACH__ /* OSX */
#ifndef THREAD_STACKSIZE_DEFAULT
#define THREAD_STACKSIZE_DEFAULT (163840)
#endif
#ifndef THREAD_STACKSIZE_IDLE
#define THREAD_STACKSIZE_IDLE (163840)
#endif
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
#define THREAD_EXTRA_STACKSIZE_PRINTF (81920)
#endif
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT
#define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (81920)
#endif
/* for core/include/thread.h */
#ifndef THREAD_STACKSIZE_MINIMUM
#define THREAD_STACKSIZE_MINIMUM (163840)
/* native internal */
#define THREAD_STACKSIZE_MINIMUM (163840)
#endif
#ifndef ISR_STACKSIZE
#define ISR_STACKSIZE (163840)
#endif
#else /* Linux etc. */
#ifndef THREAD_STACKSIZE_DEFAULT
#define THREAD_STACKSIZE_DEFAULT (8192)
#endif
#ifndef THREAD_STACKSIZE_IDLE
#define THREAD_STACKSIZE_IDLE (8192)
#endif
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF
#define THREAD_EXTRA_STACKSIZE_PRINTF (4096)
#endif
#ifndef THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT
#define THREAD_EXTRA_STACKSIZE_PRINTF_FLOAT (4096)
#endif
/* for core/include/thread.h */
#ifndef THREAD_STACKSIZE_MINIMUM
#define THREAD_STACKSIZE_MINIMUM (8192)
#endif
/* native internal */
#ifndef ISR_STACKSIZE
#define ISR_STACKSIZE (8192)
#endif
#endif /* OS */
/** @} */