HPM SDK
HPMicro Software Development Kit
hpm_pcfg_drv.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2021 HPMicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef HPM_PCFG_DRV_H
9 #define HPM_PCFG_DRV_H
10 
11 #include "hpm_common.h"
12 #include "hpm_pcfg_regs.h"
13 
21 #define PCFG_CLOCK_GATE_MODE_ALWAYS_ON (0x3UL)
22 #define PCFG_CLOCK_GATE_MODE_ALWAYS_OFF (0x2UL)
23 
24 #define PCFG_PERIPH_KEEP_CLOCK_ON(p) (PCFG_CLOCK_GATE_MODE_ALWAYS_ON << (p))
25 #define PCFG_PERIPH_KEEP_CLOCK_OFF(p) (PCFG_CLOCK_GATE_MODE_ALWAYS_OFF << (p))
26 
27 /* @brief PCFG irc24m reference */
28 typedef enum {
32 
33 /* @brief PCFG dcdc current limit */
34 typedef enum {
38 
39 /* @brief PCFG dcdc current hys */
40 typedef enum {
44 
45 /* @brief PCFG dcdc mode */
46 typedef enum {
52 
53 /* @brief PCFG pmc domain peripherals */
54 typedef enum {
65 
66 /* @brief PCFG wakeup source */
67 typedef enum {
68  pcfg_wakeup_src_soc = (1 << 0),
69  pcfg_wakeup_src_otp = (1 << 4),
73  pcfg_wakeup_src_pgpio = (1 << 10),
77  pcfg_wakeup_src_bgpio = (1 << 17),
78  pcfg_wakeup_src_wbutn = (1 << 18),
79  pcfg_wakeup_src_rtc = (1 << 19),
81 
82 /* @brief PCFG status */
83 enum {
85 };
86 
87 /* @brief PCFG irc24m config */
88 typedef struct {
89  uint32_t freq_in_hz;
90  pcfg_irc24m_reference_t reference;
91  bool return_to_default_on_xtal_loss;
92  bool free_run;
94 
95 
96 #define PCFG_CLOCK_GATE_CONTROL_MASK(module, mode) \
97  ((uint32_t) (mode) << ((module) << 1))
98 
99 #define PCFG_DEBUG_STOP_SOURCE_ENABLE_CORE0 (PCFG_DEBUG_STOP_CPU0_MASK)
100 #define PCFG_DEBUG_STOP_SOURCE_DISABLE_CORE0 (0)
101 #define PCFG_DEBUG_STOP_SOURCE_ENABLE_CORE1 (PCFG_DEBUG_STOP_CPU1_MASK)
102 #define PCFG_DEBUG_STOP_SOURCE_DISABLE_CORE1 (0)
103 
104 #ifdef __cplusplus
105 extern "C" {
106 #endif
107 
114 {
116 }
117 
124 {
126 }
127 
134 {
136 }
137 
144 {
146 }
147 
155 static inline bool pcfg_bandgap_is_trimmed(PCFG_Type *ptr)
156 {
158 }
159 
165 static inline void pcfg_bandgap_reload_trim(PCFG_Type *ptr)
166 {
168 }
169 
175 static inline void pcfg_ldo2p5_turn_off(PCFG_Type *ptr)
176 {
178 }
179 
185 static inline void pcfg_ldo2p5_turn_on(PCFG_Type *ptr)
186 {
188 }
189 
197 static inline bool pcfg_ldo2p5_is_stable(PCFG_Type *ptr)
198 {
199  return PCFG_LDO2P5_READY_GET(ptr->LDO2P5);
200 }
201 
202 /*
203  * @brief check if DCDC is stable or not
204  * @param[in] ptr base address
205  * @retval true if DCDC is stable
206  */
207 static inline bool pcfg_dcdc_is_stable(PCFG_Type *ptr)
208 {
209  return PCFG_DCDC_MODE_READY_GET(ptr->DCDC_MODE);
210 }
211 
212 /*
213  * @brief set DCDC work mode
214  * @param[in] ptr base address
215  */
216 static inline void pcfg_dcdc_set_mode(PCFG_Type *ptr, uint8_t mode)
217 {
219 }
220 
228 static inline void pcfg_dcdc_set_lp_current_limit(PCFG_Type *ptr, pcfg_dcdc_lp_current_limit_t limit, bool over_limit)
229 {
230  (void) over_limit;
232 }
233 
240 {
242 }
243 
250 {
252 }
253 
261 static inline bool pcfg_dcdc_is_power_loss(PCFG_Type *ptr)
262 {
264 }
265 
272 {
274 }
275 
282 {
284 }
285 
292 static inline bool pcfg_dcdc_is_over_voltage(PCFG_Type *ptr)
293 {
295 }
296 
303 {
305 }
306 
313 {
315 }
316 
325 {
327 }
328 
336 static inline uint32_t pcfg_dcdc_get_start_time_in_cycle(PCFG_Type *ptr)
337 {
339 }
340 
348 static inline uint32_t pcfg_dcdc_get_resume_time_in_cycle(PCFG_Type *ptr)
349 {
351 }
352 
359 static inline void pcfg_dcdc_set_start_time_in_cycle(PCFG_Type *ptr, uint32_t cycles)
360 {
362 }
363 
370 static inline void pcfg_dcdc_set_resume_time_in_cycle(PCFG_Type *ptr, uint32_t cycles)
371 {
373 }
374 
382 {
384 }
385 
391 static inline void pcfg_disable_power_trap(PCFG_Type *ptr)
392 {
394 }
395 
401 static inline void pcfg_enable_power_trap(PCFG_Type *ptr)
402 {
404 }
405 
413 static inline bool pcfg_is_power_trap_triggered(PCFG_Type *ptr)
414 {
416 }
417 
424 {
426 }
427 
433 static inline void pcfg_disable_dcdc_retention(PCFG_Type *ptr)
434 {
436 }
437 
443 static inline void pcfg_enable_dcdc_retention(PCFG_Type *ptr)
444 {
446 }
447 
454 static inline void pcfg_clear_wakeup_cause(PCFG_Type *ptr, uint32_t mask)
455 {
456  ptr->WAKE_CAUSE = mask;
457 }
458 
466 static inline uint32_t pcfg_get_wakeup_cause(PCFG_Type *ptr)
467 {
468  return ptr->WAKE_CAUSE;
469 }
470 
477 static inline void pcfg_enable_wakeup_source(PCFG_Type *ptr, uint32_t mask)
478 {
479  ptr->WAKE_MASK &= ~mask;
480 }
481 
488 static inline void pcfg_disable_wakeup_source(PCFG_Type *ptr, uint32_t mask)
489 {
490  ptr->WAKE_MASK |= mask;
491 }
492 
499 static inline void pcfg_set_periph_clock_mode(PCFG_Type *ptr, uint32_t mode)
500 {
501  ptr->SCG_CTRL = mode;
502 }
503 
511 static inline void pcfg_update_periph_clock_mode(PCFG_Type *ptr, pcfg_pmc_periph_t periph, bool on)
512 {
513  if (on) {
514  ptr->SCG_CTRL = (ptr->SCG_CTRL & ~(0x03 << periph)) | PCFG_PERIPH_KEEP_CLOCK_ON(periph);
515  } else {
516  ptr->SCG_CTRL = (ptr->SCG_CTRL & ~(0x03 << periph)) | PCFG_PERIPH_KEEP_CLOCK_OFF(periph);
517  }
518 }
519 
526 {
528 }
529 
536 {
538 }
539 
546 {
548 }
549 
556 {
558 }
559 
566 static inline void pcfg_config_debug_stop_notification(PCFG_Type *ptr, uint8_t mask)
567 {
568  ptr->DEBUG_STOP = mask;
569 }
570 
578 static inline bool pcfg_irc24m_is_trimmed(PCFG_Type *ptr)
579 {
580  return ptr->RC24M & PCFG_RC24M_RC_TRIMMED_MASK;
581 }
582 
588 static inline void pcfg_irc24m_reload_trim(PCFG_Type *ptr)
589 {
591 }
592 
600 
601 /*
602  * @brief set DCDC voltage at standby mode
603  * @param[in] ptr base address
604  * @param[in] mv target voltage
605  * @retval status_success if successfully configured
606  */
608 
609 /*
610  * @brief set output voltage of LDO 2.5V in mV
611  * @param[in] ptr base address
612  * @param[in] mv target voltage
613  * @retval status_success if successfully configured
614  */
615 hpm_stat_t pcfg_ldo2p5_set_voltage(PCFG_Type *ptr, uint16_t mv);
616 
617 /*
618  * @brief set DCDC voltage
619  * @param[in] ptr base address
620  * @param[in] mv target voltage
621  * @retval status_success if successfully configured
622  */
623 hpm_stat_t pcfg_dcdc_set_voltage(PCFG_Type *ptr, uint16_t mv);
624 
625 /*
626  * @brief set output voltage of LDO 1V in mV
627  * @param[in] ptr base address
628  * @param[in] mv target voltage
629  * @retval status_success if successfully configured
630  */
631 hpm_stat_t pcfg_ldo1p1_set_voltage(PCFG_Type *ptr, uint16_t mv);
632 
633 /*
634  * @brief get current DCDC current level in mA
635  *
636  * @param[in] ptr base address
637  * @retval Current level at mA
638  */
640 
641 
642 #ifdef __cplusplus
643 }
644 #endif
649 #endif /* HPM_PCFG_DRV_H */
#define PCFG_DCDC_RESUME_TIME_RESUME_TIME_GET(x)
Definition: hpm_pcfg_regs.h:592
#define PCFG_LDO2P5_READY_GET(x)
Definition: hpm_pcfg_regs.h:108
#define PCFG_POWER_TRAP_TRIGGERED_MASK
Definition: hpm_pcfg_regs.h:602
#define PCFG_DCDC_CURRENT_VALID_MASK
Definition: hpm_pcfg_regs.h:303
#define PCFG_DCDC_MISC_OL_HYST_MASK
Definition: hpm_pcfg_regs.h:520
#define PCFG_POWER_TRAP_RETENTION_MASK
Definition: hpm_pcfg_regs.h:614
#define PCFG_DCDC_CURRENT_ESTI_EN_MASK
Definition: hpm_pcfg_regs.h:291
#define PCFG_DCDC_MODE_MODE_SET(x)
Definition: hpm_pcfg_regs.h:160
#define PCFG_LDO2P5_ENABLE_MASK
Definition: hpm_pcfg_regs.h:117
#define PCFG_DCDC_MODE_READY_GET(x)
Definition: hpm_pcfg_regs.h:146
#define PCFG_DCDC_START_TIME_START_TIME_GET(x)
Definition: hpm_pcfg_regs.h:581
#define PCFG_DCDC_START_TIME_START_TIME_SET(x)
Definition: hpm_pcfg_regs.h:580
#define PCFG_DCDC_MISC_OL_HYST_SET(x)
Definition: hpm_pcfg_regs.h:522
#define PCFG_POWER_TRAP_TRAP_MASK
Definition: hpm_pcfg_regs.h:626
#define PCFG_DCDC_PROT_OVERVOLT_FLAG_MASK
Definition: hpm_pcfg_regs.h:246
#define PCFG_BANDGAP_VBG_TRIMMED_MASK
Definition: hpm_pcfg_regs.h:48
#define PCFG_DCDC_PROT_DISABLE_OVERVOLTAGE_MASK
Definition: hpm_pcfg_regs.h:234
#define PCFG_DCDC_RESUME_TIME_RESUME_TIME_SET(x)
Definition: hpm_pcfg_regs.h:591
#define PCFG_DCDC_MODE_MODE_MASK
Definition: hpm_pcfg_regs.h:158
#define PCFG_DCDC_PROT_ILIMIT_LP_MASK
Definition: hpm_pcfg_regs.h:200
#define PCFG_DCDC_PROT_OVERVOLT_FLAG_GET(x)
Definition: hpm_pcfg_regs.h:248
#define PCFG_DCDC_PROT_POWER_LOSS_FLAG_GET(x)
Definition: hpm_pcfg_regs.h:225
#define PCFG_RC24M_RC_TRIMMED_MASK
Definition: hpm_pcfg_regs.h:696
#define PCFG_DCDC_PROT_ILIMIT_LP_SET(x)
Definition: hpm_pcfg_regs.h:202
static void pcfg_ldo2p5_turn_on(PCFG_Type *ptr)
turn on LDO 2.5V
Definition: hpm_pcfg_drv.h:185
static bool pcfg_bandgap_is_trimmed(PCFG_Type *ptr)
check if bandgap is trimmed or not
Definition: hpm_pcfg_drv.h:155
static void pcfg_enable_power_trap(PCFG_Type *ptr)
enable power trap
Definition: hpm_pcfg_drv.h:401
static void pcfg_update_periph_clock_mode(PCFG_Type *ptr, pcfg_pmc_periph_t periph, bool on)
update clock gate mode in vpmc domain
Definition: hpm_pcfg_drv.h:511
static bool pcfg_dcdc_is_measure_current_valid(PCFG_Type *ptr)
check if measured current is valid
Definition: hpm_pcfg_drv.h:324
static void pcfg_dcdc_set_current_hys_range(PCFG_Type *ptr, pcfg_dcdc_current_hys_t range)
set dcdc current hysteres range
Definition: hpm_pcfg_drv.h:381
static void pcfg_clear_power_trap_trigger_flag(PCFG_Type *ptr)
clear power trap trigger flag
Definition: hpm_pcfg_drv.h:423
static void pcfg_bandgap_reload_trim(PCFG_Type *ptr)
bandgap reload trim value
Definition: hpm_pcfg_drv.h:165
static uint32_t pcfg_dcdc_get_start_time_in_cycle(PCFG_Type *ptr)
get DCDC start time in number of 24MHz clock cycles
Definition: hpm_pcfg_drv.h:336
static void pcfg_dcdc_ensable_over_voltage_prot(PCFG_Type *ptr)
enable over voltage protection
Definition: hpm_pcfg_drv.h:281
static void pcfg_dcdc_disable_over_voltage_prot(PCFG_Type *ptr)
disable over voltage protection
Definition: hpm_pcfg_drv.h:271
static void pcfg_disable_dcdc_retention(PCFG_Type *ptr)
disable dcdc retention
Definition: hpm_pcfg_drv.h:433
static bool pcfg_is_power_trap_triggered(PCFG_Type *ptr)
check if power trap is triggered
Definition: hpm_pcfg_drv.h:413
static bool pcfg_dcdc_is_stable(PCFG_Type *ptr)
Definition: hpm_pcfg_drv.h:207
static void pcfg_set_periph_clock_mode(PCFG_Type *ptr, uint32_t mode)
set clock gate mode in vpmc domain
Definition: hpm_pcfg_drv.h:499
static void pcfg_dcdc_set_mode(PCFG_Type *ptr, uint8_t mode)
Definition: hpm_pcfg_drv.h:216
static void pcfg_disable_wakeup_source(PCFG_Type *ptr, uint32_t mask)
disable wakeup source
Definition: hpm_pcfg_drv.h:488
static bool pcfg_dcdc_is_power_loss(PCFG_Type *ptr)
check if power loss flag is set
Definition: hpm_pcfg_drv.h:261
static bool pcfg_irc24m_is_trimmed(PCFG_Type *ptr)
check if irc24m is trimmed
Definition: hpm_pcfg_drv.h:578
static void pcfg_dcdc_set_resume_time_in_cycle(PCFG_Type *ptr, uint32_t cycles)
set DCDC resuem time in 24MHz clock cycles
Definition: hpm_pcfg_drv.h:370
static bool pcfg_ldo2p5_is_stable(PCFG_Type *ptr)
check if LDO 2.5V is stable
Definition: hpm_pcfg_drv.h:197
static void pcfg_irc24m_reload_trim(PCFG_Type *ptr)
reload irc24m trim value
Definition: hpm_pcfg_drv.h:588
static void pcfg_dcdc_set_start_time_in_cycle(PCFG_Type *ptr, uint32_t cycles)
set DCDC start time in 24MHz clock cycles
Definition: hpm_pcfg_drv.h:359
static void pcfg_dcdc_enable_measure_current(PCFG_Type *ptr)
enable current measurement
Definition: hpm_pcfg_drv.h:312
static void pcfg_clear_wakeup_cause(PCFG_Type *ptr, uint32_t mask)
clear wakeup cause flag
Definition: hpm_pcfg_drv.h:454
static void pcfg_enable_wakeup_source(PCFG_Type *ptr, uint32_t mask)
enable wakeup source
Definition: hpm_pcfg_drv.h:477
static void pcfg_dcdc_disable_measure_current(PCFG_Type *ptr)
disable current measurement
Definition: hpm_pcfg_drv.h:302
static void pcfg_disable_power_trap(PCFG_Type *ptr)
disable power trap
Definition: hpm_pcfg_drv.h:391
static bool pcfg_dcdc_is_over_voltage(PCFG_Type *ptr)
checkover voltage flag
Definition: hpm_pcfg_drv.h:292
static uint32_t pcfg_get_wakeup_cause(PCFG_Type *ptr)
get wakeup cause
Definition: hpm_pcfg_drv.h:466
static void pcfg_enable_dcdc_retention(PCFG_Type *ptr)
enable dcdc retention to retain soc sram data
Definition: hpm_pcfg_drv.h:443
static void pcfg_ldo2p5_turn_off(PCFG_Type *ptr)
turn off LDO2P5
Definition: hpm_pcfg_drv.h:175
static uint32_t pcfg_dcdc_get_resume_time_in_cycle(PCFG_Type *ptr)
get DCDC resume time in number of 24MHz clock cycles
Definition: hpm_pcfg_drv.h:348
#define PCFG_DEBUG_STOP_CPU0_MASK
Definition: hpm_pcfg_regs.h:749
#define PCFG_DCDC_PROT_DISABLE_POWER_LOSS_MASK
Definition: hpm_pcfg_regs.h:248
#define PCFG_DEBUG_STOP_CPU1_MASK
Definition: hpm_pcfg_regs.h:737
#define PCFG_BANDGAP_LOWPOWER_MODE_MASK
Definition: hpm_pcfg_regs.h:61
#define PCFG_BANDGAP_POWER_SAVE_MASK
Definition: hpm_pcfg_regs.h:73
uint32_t hpm_stat_t
Definition: hpm_common.h:126
#define MAKE_STATUS(group, code)
Definition: hpm_common.h:135
@ status_group_pcfg
Definition: hpm_common.h:159
void pcfg_irc24m_config_track(PCFG_Type *ptr, pcfg_irc24m_config_t *config)
config irc24m track
Definition: hpm_pcfg_drv.c:74
hpm_stat_t pcfg_ldo1p1_set_voltage(PCFG_Type *ptr, uint16_t mv)
Definition: hpm_pcfg_drv.c:14
hpm_stat_t pcfg_ldo2p5_set_voltage(PCFG_Type *ptr, uint16_t mv)
Definition: hpm_pcfg_drv.c:24
pcfg_dcdc_lp_current_limit_t
Definition: hpm_pcfg_drv.h:34
static void pcfg_bandgap_disable_lowpower_mode(PCFG_Type *ptr)
bandgap disable power save mode
Definition: hpm_pcfg_drv.h:133
uint16_t pcfg_dcdc_get_current_level(PCFG_Type *ptr)
Definition: hpm_pcfg_drv.c:47
hpm_stat_t pcfg_dcdc_set_voltage(PCFG_Type *ptr, uint16_t mv)
Definition: hpm_pcfg_drv.c:63
#define PCFG_PERIPH_KEEP_CLOCK_OFF(p)
Definition: hpm_pcfg_drv.h:25
static void pcfg_disable_cpu1_debug_stop_notfication(PCFG_Type *ptr)
Disable CPU1 debug stop notification to peripherals.
Definition: hpm_pcfg_drv.h:545
static void pcfg_bandgap_enable_power_save_mode(PCFG_Type *ptr)
bandgap enable power save mode
Definition: hpm_pcfg_drv.h:123
pcfg_pmc_periph_t
Definition: hpm_pcfg_drv.h:54
static void pcfg_config_debug_stop_notification(PCFG_Type *ptr, uint8_t mask)
Configure CPU core debug stop notification to peripherals.
Definition: hpm_pcfg_drv.h:566
static void pcfg_dcdc_enable_power_loss_prot(PCFG_Type *ptr)
enable power loss protection
Definition: hpm_pcfg_drv.h:249
static void pcfg_enable_cpu0_debug_stop_notfication(PCFG_Type *ptr)
Enable CPU0 debug stop notification to peripherals.
Definition: hpm_pcfg_drv.h:535
pcfg_wakeup_src_t
Definition: hpm_pcfg_drv.h:63
static void pcfg_bandgap_disable_power_save_mode(PCFG_Type *ptr)
bandgap disable power save mode
Definition: hpm_pcfg_drv.h:113
pcfg_dcdc_mode_t
Definition: hpm_pcfg_drv.h:46
static void pcfg_disable_cpu0_debug_stop_notfication(PCFG_Type *ptr)
Disable CPU0 debug stop notficiation to peripherals.
Definition: hpm_pcfg_drv.h:525
static void pcfg_bandgap_enable_lowpower_mode(PCFG_Type *ptr)
bandgap enable low power mode
Definition: hpm_pcfg_drv.h:143
pcfg_dcdc_current_hys_t
Definition: hpm_pcfg_drv.h:40
#define PCFG_PERIPH_KEEP_CLOCK_ON(p)
Definition: hpm_pcfg_drv.h:24
pcfg_irc24m_reference_t
Definition: hpm_pcfg_drv.h:28
static void pcfg_dcdc_disable_power_loss_prot(PCFG_Type *ptr)
disable power loss protection
Definition: hpm_pcfg_drv.h:239
static void pcfg_dcdc_set_lp_current_limit(PCFG_Type *ptr, pcfg_dcdc_lp_current_limit_t limit, bool over_limit)
set low power current limit
Definition: hpm_pcfg_drv.h:228
static void pcfg_enable_cpu1_debug_stop_notfication(PCFG_Type *ptr)
Enable CPU1 debug stop notification to peripherals.
Definition: hpm_pcfg_drv.h:555
hpm_stat_t pcfg_dcdc_set_lpmode_voltage(PCFG_Type *ptr, uint16_t mv)
Definition: hpm_pcfg_drv.c:95
@ pcfg_dcdc_lp_current_limit_250ma
Definition: hpm_pcfg_drv.h:35
@ pcfg_dcdc_lp_current_limit_200ma
Definition: hpm_pcfg_drv.h:36
@ status_pcfg_ldo_out_of_range
Definition: hpm_pcfg_drv.h:74
@ pcfg_pmc_periph_fuse
Definition: hpm_pcfg_drv.h:55
@ pcfg_pmc_periph_timer
Definition: hpm_pcfg_drv.h:57
@ pcfg_pmc_periph_ram
Definition: hpm_pcfg_drv.h:56
@ pcfg_pmc_periph_vad
Definition: hpm_pcfg_drv.h:57
@ pcfg_pmc_periph_debug
Definition: hpm_pcfg_drv.h:63
@ pcfg_pmc_periph_uart
Definition: hpm_pcfg_drv.h:59
@ pcfg_pmc_periph_ioc
Definition: hpm_pcfg_drv.h:56
@ pcfg_pmc_periph_gpio
Definition: hpm_pcfg_drv.h:55
@ pcfg_pmc_periph_wdog
Definition: hpm_pcfg_drv.h:58
@ pcfg_wakeup_src_bgpio
Definition: hpm_pcfg_drv.h:77
@ pcfg_wakeup_src_wbutn
Definition: hpm_pcfg_drv.h:78
@ pcfg_wakeup_src_pwdg
Definition: hpm_pcfg_drv.h:67
@ pcfg_wakeup_src_psecurity
Definition: hpm_pcfg_drv.h:75
@ pcfg_wakeup_src_pgpio
Definition: hpm_pcfg_drv.h:68
@ pcfg_wakeup_src_otp
Definition: hpm_pcfg_drv.h:69
@ pcfg_wakeup_src_puart
Definition: hpm_pcfg_drv.h:65
@ pcfg_wakeup_src_monitor
Definition: hpm_pcfg_drv.h:74
@ pcfg_wakeup_src_soc
Definition: hpm_pcfg_drv.h:64
@ pcfg_wakeup_src_bsecurity
Definition: hpm_pcfg_drv.h:76
@ pcfg_wakeup_src_ptimer
Definition: hpm_pcfg_drv.h:66
@ pcfg_wakeup_src_rtc
Definition: hpm_pcfg_drv.h:79
@ pcfg_dcdc_mode_general
Definition: hpm_pcfg_drv.h:49
@ pcfg_dcdc_mode_off
Definition: hpm_pcfg_drv.h:47
@ pcfg_dcdc_mode_basic
Definition: hpm_pcfg_drv.h:48
@ pcfg_dcdc_mode_expert
Definition: hpm_pcfg_drv.h:50
@ pcfg_dcdc_current_hys_25mv
Definition: hpm_pcfg_drv.h:42
@ pcfg_dcdc_current_hys_12_5mv
Definition: hpm_pcfg_drv.h:41
@ pcfg_irc24m_reference_24m_xtal
Definition: hpm_pcfg_drv.h:30
@ pcfg_irc24m_reference_32k
Definition: hpm_pcfg_drv.h:29
Definition: hpm_pcfg_regs.h:12
__RW uint32_t LDO2P5
Definition: hpm_pcfg_regs.h:15
__RW uint32_t POWER_TRAP
Definition: hpm_pcfg_regs.h:28
__RW uint32_t DCDC_CURRENT
Definition: hpm_pcfg_regs.h:20
__RW uint32_t WAKE_MASK
Definition: hpm_pcfg_regs.h:30
__RW uint32_t BANDGAP
Definition: hpm_pcfg_regs.h:13
__RW uint32_t SCG_CTRL
Definition: hpm_pcfg_regs.h:31
__RW uint32_t DCDC_START_TIME
Definition: hpm_pcfg_regs.h:25
__RW uint32_t DCDC_PROT
Definition: hpm_pcfg_regs.h:19
__RW uint32_t DCDC_MODE
Definition: hpm_pcfg_regs.h:17
__RW uint32_t DCDC_MISC
Definition: hpm_pcfg_regs.h:23
__RW uint32_t DEBUG_STOP
Definition: hpm_pcfg_regs.h:32
__RW uint32_t DCDC_RESUME_TIME
Definition: hpm_pcfg_regs.h:26
__RW uint32_t WAKE_CAUSE
Definition: hpm_pcfg_regs.h:29
__RW uint32_t RC24M
Definition: hpm_pcfg_regs.h:33
Definition: hpm_pcfg_drv.h:78