Skip to content

[Feature Request] Possible simplification of pdMS_TO_TICKS #889

@jputcu

Description

@jputcu

I've recently switched to using pdMS_TO_TICKS in my AVR code.
Because the calculations where too heavy I've overruled it in my FreeRTOSConfig.h:

#define pdMS_TO_TICKS(ms) ((ms)/portTICK_PERIOD_MS)

Could this be a better alternative to the current implementation?

It actually only becomes expensive when the preprocessor can't calculate it e.g. on variables.
A related issue even made it a bit heavier: #866.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions