Skip to content
This repository was archived by the owner on Dec 18, 2025. It is now read-only.

PMU_CTRL_FRZ_ON_OVERFLOW_Pos does not exist #1682

@Totrasmek

Description

@Totrasmek

Hey there, looks like a simple bug at least on the platform I'm working with. PMU_CTRL_FRZ_ON_OVERFLOW_Pos and PMU_CTRL_TRACE_ON_OVERFLOW_Pos do not exist, but PMU_CTRL_FRZ_ON_OV_Pos and PMU_CTRL_TRACE_ON_OV_Pos do. I included the CYCCNT_DISABLE macros as an example to show the issue.

#define PMU_CTRL_CYCCNT_DISABLE_Pos           5U                                           /*!< PMU CTRL: Disable Cycle Counter Position */
#define PMU_CTRL_CYCCNT_DISABLE_Msk          (1UL << PMU_CTRL_CYCCNT_DISABLE_Pos)          /*!< PMU CTRL: Disable Cycle Counter Mask */

#define PMU_CTRL_FRZ_ON_OV_Pos                9U                                           /*!< PMU CTRL: Freeze-on-overflow Position */
#define PMU_CTRL_FRZ_ON_OV_Msk               (1UL << PMU_CTRL_FRZ_ON_OVERFLOW_Pos)         /*!< PMU CTRL: Freeze-on-overflow Mask */

#define PMU_CTRL_TRACE_ON_OV_Pos              11U                                          /*!< PMU CTRL: Trace-on-overflow Position */
#define PMU_CTRL_TRACE_ON_OV_Msk             (1UL << PMU_CTRL_TRACE_ON_OVERFLOW_Pos)       /*!< PMU CTRL: Trace-on-overflow Mask */

The two overflow masks lines should be I believe respectively

#define PMU_CTRL_FRZ_ON_OV_Msk               (1UL << PMU_CTRL_FRZ_ON_OV_Pos)         /*!< PMU CTRL: Freeze-on-overflow Mask */

and

#define PMU_CTRL_TRACE_ON_OV_Msk             (1UL << PMU_CTRL_TRACE_ON_OV_Pos)       /*!< PMU CTRL: Trace-on-overflow Mask */

I'd make a PR but am not able to at this time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions