Interrupts Disabled Time Measurement

µC/CPU can measure the maximum amount of time interrupts are disabled during calls to CPU_CRITICAL_ENTER()/CPU_CRITICAL_EXIT() is measured and saved. There are two maximum interrupts disable time measurements, one resetable and the other non-resetable, both measured in units of CPU timestamp timer counts.

The interrupts disabled time measurement feature is available only if CPU_CFG_INT_DIS_MEAS_EN is DEF_ENABLED in cpu_cfg.h. Note that this feature requires that the application/developer provide CPU timestamp timer functions (see CPU_TS_TmrInit and CPU_TS_TmrRd).

Interrupts Disabled Time Measurement Configuration

The following µC/CPU interrupts disabled time measurement configurations must be configured in cpu_cfg.h :

CPU_CFG_INT_DIS_MEAS_EN

Includes code to measure and return maximum interrupts disabled time. This feature is enabled if the macro is #define'd in cpu_cfg.h.

CPU_CFG_INT_DIS_MEAS_OVRHD_NBR

Configures the number of times to measure and calculate the interrupts disabled time measurement overhead.

Related pages