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.
Hey there, looks like a simple bug at least on the platform I'm working with.
PMU_CTRL_FRZ_ON_OVERFLOW_PosandPMU_CTRL_TRACE_ON_OVERFLOW_Posdo not exist, butPMU_CTRL_FRZ_ON_OV_PosandPMU_CTRL_TRACE_ON_OV_Posdo. I included theCYCCNT_DISABLEmacros as an example to show the issue.The two overflow masks lines should be I believe respectively
and
I'd make a PR but am not able to at this time.