14#ifndef T32CZ20_POWER_H_
15#define T32CZ20_POWER_H_
37 #define CHIP_MEMORY_MAP_DEEP_PWR_DOWN_BASE (0x50005000UL)
39 #define CHIP_MEMORY_MAP_DEEP_PWR_DOWN_BASE (0x40005000UL)
42#ifdef SOC_PMU_SECURE_EN
43 #define CHIP_MEMORY_MAP_POWER_MGMT_BASE (0x50006000UL)
45 #define CHIP_MEMORY_MAP_POWER_MGMT_BASE (0x40006000UL)
81#define TR_HAL_RESET_REASON_POWER 0x01
82#define TR_HAL_RESET_REASON_EXTERNAL_RESET 0x02
83#define TR_HAL_RESET_REASON_DEEP_POWER_DOWN 0x04
84#define TR_HAL_RESET_REASON_DEEP_SLEEP 0x08
85#define TR_HAL_RESET_REASON_WATCHDOG 0x10
86#define TR_HAL_RESET_REASON_SOFTWARE 0x20
87#define TR_HAL_RESET_REASON_MCU_LOCKUP 0x40
94#define DEEP_POWER_DOWN_CHIP_REGISTERS ((DEEP_POWER_DOWN_REGISTERS_T *) CHIP_MEMORY_MAP_DEEP_PWR_DOWN_BASE)
104 __IO uint32_t reserved0[2];
108 __IO uint32_t reserved1[5];
113 __IO uint32_t reserved2[3];
118 __IO uint32_t reserved3[2];
122 __IO uint32_t reserved4[18];
137#define PM_RCO_1M_TUNE_FINE_MASK 0x8F
140#define PM_RCO_1M_TUNE_COARSE_MASK 0xF00
146#define PM_RCO_1M_ENABLE_BIT 0x10000
153#define PM_RCO_32K_TUNE_FINE_MASK 0xFF
156#define PM_RCO_32K_TUNE_COARSE_MASK 0x300
167#define PM_RCO_32K_ENABLE_BIT 0x01000000
174#define POWER_MGMT_CHIP_REGISTERS ((POWER_MGMT_REGISTERS_T *) CHIP_MEMORY_MAP_POWER_MGMT_BASE)
tr_hal_power_mode_t
enum for the different power modes that the chip can be in see section 5, table 5-2
Definition T32CZ20_power.h:183
tr_hal_clock_t
enum for the different clocks some of these can be disabled and some cannot, the crystal oscillator c...
Definition T32CZ20_power.h:202
@ TR_HAL_POWER_MODE_1
Definition T32CZ20_power.h:185
@ TR_HAL_POWER_MODE_3
Definition T32CZ20_power.h:187
@ TR_HAL_POWER_MODE_0
Definition T32CZ20_power.h:184
@ TR_HAL_POWER_MODE_2
Definition T32CZ20_power.h:186
@ TR_HAL_CLOCK_16M
Definition T32CZ20_power.h:210
@ TR_HAL_CLOCK_32M
Definition T32CZ20_power.h:205
@ TR_HAL_CLOCK_32K
Definition T32CZ20_power.h:220
@ TR_HAL_CLOCK_1M
Definition T32CZ20_power.h:215
offsets for where to find chip registers needed for Deep Power Down register which is used to see sec...
Definition T32CZ20_power.h:54
__IO uint32_t retention_3
Definition T32CZ20_power.h:75
__IO uint32_t reset_reason
Definition T32CZ20_power.h:56
__IO uint32_t retention_1
Definition T32CZ20_power.h:73
__IO uint32_t gpio_wake_enable
Definition T32CZ20_power.h:62
__IO uint32_t retention_2
Definition T32CZ20_power.h:74
__IO uint32_t clear_reset_reason
Definition T32CZ20_power.h:59
__IO uint32_t retention_0
Definition T32CZ20_power.h:72
__IO uint32_t gpio_wake_polarity
Definition T32CZ20_power.h:67
offsets for where to find chip registers needed for Power Mgmt register. This is not documented in th...
Definition T32CZ20_power.h:103
__IO uint32_t pmu_soc_pmu_xtal_1
Definition T32CZ20_power.h:111
__IO uint32_t pmu_osc_32k
Definition T32CZ20_power.h:116
__IO uint32_t soc_pmu_rco1m
Definition T32CZ20_power.h:128
__IO uint32_t pmu_soc_pmu_xtal_0
Definition T32CZ20_power.h:110
__IO uint32_t soc_bbpll_read
Definition T32CZ20_power.h:106
__IO uint32_t pmu_rvd_0
Definition T32CZ20_power.h:120