Skip to content

Find a better naming for "MAIN"-constants #732

@OlegHahm

Description

@OlegHahm

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_MAIN
  • PRIORITY_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).

Metadata

Metadata

Assignees

Labels

State: won't fixState: The issue can not or will not be fixedType: questionThe issue poses a question regarding usage of RIOT

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions