Skip to content

feature: Task creation macros #58

@reporiot

Description

@reporiot

Related Issues & PRs

Description

The declaration and definition of a modules data structures should be easily possible through the use of macros. Structures, relying on FreeRTOS, often require extensive use of many types like tasks and queues which in turn depend on stacks and buffers.

Solution

Provide macros that can be included into a modules main data structure definition like in the example below:

struct spo2 {
    TASK(name, stacksize);
    QUEUE(name, size, length);
    QUEUE(name, size, length);
}

Alternative solutions

  • Alternate solutions do not make use of macros but require more effort to produce the same result.

Context

See for example these definitions and config structs which could be saved away.

Metadata

Metadata

Assignees

Labels

RTOSFreeRTOS related issueenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions