-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Find a better naming for "MAIN"-constants #732
Copy link
Copy link
Closed
Labels
State: won't fixState: The issue can not or will not be fixedState: The issue can not or will not be fixedType: questionThe issue poses a question regarding usage of RIOTThe issue poses a question regarding usage of RIOT
Description
There are two constants in RIOT having a MAIN in their name, that are actually meant to be used not only for the main thread (as the name would suggest) but as standard case:
KERNEL_CONF_STACKSIZE_MAINPRIORITY_MAIN
In order to reflect the intension to use these variables as a default value I propose to add a constant PRIORITY_DEFAULT. However, for the stack size constant it's a bit more difficult, because we already have a KERNEL_CONF_STACKSIZE_DEFAULT which differs from KERNEL_CONF_STACKSIZE_MAIN by not offering enough stack for using printf(). So, in short I'm looking for a more self-explaining name for a constant set to (KERNEL_CONF_STACKSIZE_DEFAULT + KERNEL_CONF_STACKSIZE_PRINTF).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
State: won't fixState: The issue can not or will not be fixedState: The issue can not or will not be fixedType: questionThe issue poses a question regarding usage of RIOTThe issue poses a question regarding usage of RIOT