Skip to content

[BUG] Inconsistent parameter name #1165

@swaldhoer

Description

@swaldhoer

Describe the bug
In FreeRTOS version V10.5.0 a parameter in function MPU_vTimerSetReloadMode was changed from UBaseType_t uxAutoReload to BaseType_t xAutoReload :

FreeRTOS-Kernel/History.txt

Lines 414 to 417 in 7215c89

+ Changed uxAutoReload parameter in timer functions to xAutoReload. The
type is now BaseType_t. This matches the type of pdTRUE and pdFALSE.
The new function xTimerGetAutoReload() provides the auto-reload state as
a BaseType_t. The legacy function uxTimerGetAutoReload is retained with the

But there are still old namings used which not all compilers and coding standards are happy about.

Target

  • Development board: n. a.
  • Instruction Set Architecture: n. a.
  • IDE and version: n. a.
  • Toolchain and version: n. a.

Host

  • Host OS: n. a.
  • Version: n. a.

To Reproduce
See https://github.com/search?q=repo%3AFreeRTOS%2FFreeRTOS-Kernel%20uxAutoReload%20&type=code

Expected behavior
Parameter name is in all declarations and definitions xAutoReload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions