11 #include "hpm_pmon_regs.h"
13 #define PMON_EVENT_GLITCH0 (1U << 0)
14 #define PMON_EVENT_GLITCH1 (1U << 1)
15 #define PMON_EVENT_CLOCK0 (1U << 2)
16 #define PMON_EVENT_CLOCK1 (1U << 3)
23 uint8_t monitor_index,
32 uint8_t monitor_index,
47 ptr->TEST_MODE = (ptr->TEST_MODE & ~PMON_TEST_MODE_DISABLE_MASK)
48 | PMON_TEST_MODE_DISABLE_SET(!enable);
#define PMON_MONITOR_CONTROL_ACTIVE_MASK
Definition: hpm_pmon_regs.h:31
#define PMON_MONITOR_CONTROL_ENABLE_SET(x)
Definition: hpm_pmon_regs.h:45
#define PMON_MONITOR_CONTROL_ENABLE_MASK
Definition: hpm_pmon_regs.h:43
#define PMON_MONITOR_CONTROL_ACTIVE_SET(x)
Definition: hpm_pmon_regs.h:33
static void pmon_select_glitch_mode(PMON_Type *ptr, uint8_t monitor_index, bool active_mode)
Definition: hpm_pmon_drv.h:31
static bool pmon_glich_detected(PMON_Type *ptr, uint8_t monitor_index)
Definition: hpm_pmon_drv.h:40
static uint32_t pmon_irq_get_status(PMON_Type *ptr)
Definition: hpm_pmon_drv.h:56
static void pmon_irq_enable(PMON_Type *ptr, uint32_t mask, bool enable)
Definition: hpm_pmon_drv.h:51
static void pmon_test_mode_enable(PMON_Type *ptr, bool enable)
Definition: hpm_pmon_drv.h:45
static void pmon_enable(PMON_Type *ptr, uint8_t monitor_index, bool enable)
Definition: hpm_pmon_drv.h:22
Definition: hpm_pmon_regs.h:12
__RW uint32_t STATUS
Definition: hpm_pmon_regs.h:15
struct PMON_Type::@388 MONITOR[4]
__RW uint32_t CONTROL
Definition: hpm_pmon_regs.h:14
__RW uint32_t IRQ_ENABLE
Definition: hpm_pmon_regs.h:19
__RW uint32_t IRQ_FLAG
Definition: hpm_pmon_regs.h:18