tests/rng: take into account stack buffers and printf
Take into account stack buffers and printf for allocating the default stack size. This solves stack size issues with `wsn430-v1_3b` and `z1`. It now have a main stack usage of 514 bytes out of 768 on `wsn430-v1_3b`.
This commit is contained in:
parent
d1c454790f
commit
381382b61a
@ -5,6 +5,10 @@ BOARD_BLACKLIST += nucleo-f031k6 nucleo-f042k6 nucleo-l031k6 pic32-clicker
|
|||||||
BOARD_INSUFFICIENT_MEMORY += arduino-duemilanove arduino-leonardo arduino-nano \
|
BOARD_INSUFFICIENT_MEMORY += arduino-duemilanove arduino-leonardo arduino-nano \
|
||||||
arduino-uno
|
arduino-uno
|
||||||
|
|
||||||
|
# Default stack with printf + the tests buffer uint32_t[32]/uint8_t[256]
|
||||||
|
MAIN_THREAD_SIZE = THREAD_STACKSIZE_DEFAULT+THREAD_EXTRA_STACKSIZE_PRINTF+256
|
||||||
|
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\($(MAIN_THREAD_SIZE)\)
|
||||||
|
|
||||||
# override PRNG if desired (see sys/random for alternatives)
|
# override PRNG if desired (see sys/random for alternatives)
|
||||||
# USEMODULE += prng_minstd
|
# USEMODULE += prng_minstd
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user