Skip to content

Commit

Permalink
PMICDRV-196: Implement Power module (tests)
Browse files Browse the repository at this point in the history
Additionally, implement bug fixes found through running power_test.c

Pmic_pwr{Set,Get}BuckLdoSeqDly requires more investigation

Signed-off-by: John Bui <[email protected]>
  • Loading branch information
JohnBuiTI authored and LeonardMH committed Aug 14, 2024
1 parent b480f05 commit dd2ebf0
Show file tree
Hide file tree
Showing 4 changed files with 3,055 additions and 126 deletions.
20 changes: 10 additions & 10 deletions include/pmic_power.h
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ extern "C" {
#define PMIC_WARM_RESET_AND_ASSERT_NINT_PIN ((uint8_t)1U)
#define PMIC_ORD_SHUTDOWN_AND_ASSERT_NINT_PIN ((uint8_t)2U)
#define PMIC_WAIT_PWR_CYCLE_AND_ASSERT_NINT_PIN ((uint8_t)3U)
#define PMIC_REGULATOR_FAULT_MAX (PMIC_WAIT_PWR_CYCLE_AND_ASSERT_NINT_PIN)
#define PMIC_REGULATOR_FAULT_RESPONSE_MAX (PMIC_WAIT_PWR_CYCLE_AND_ASSERT_NINT_PIN)
/** @} */

/**
Expand Down Expand Up @@ -581,15 +581,6 @@ extern "C" {
* true, the regulator is forced to PWM operation. Else, automatic transitions
* between PFM and PWM modes will occur (AUTO mode).
*
* @param slewRate BUCK1, BUCK2, or BUCK3 output voltage slew rate. For valid
* values, refer to @ref Pmic_BuckSlewRateValues.
*
* @param deglitchSel BUCK1, BUCK2, or BUCK3 deglitch selection. For valid
* values, refer to @ref Pmic_buckDeglitchSelValues.
*
* @param dischargeSel BUCK1, BUCK2, or BUCK3 discharge selection. For valid
* values, refer to @ref Pmic_BuckDischargeSelValues.
*
* @param uvThr BUCK1, BUCK2, or BUCK3 powergood low threshold level. For valid
* values, refer to @ref Pmic_buckUvThrValues.
*
Expand All @@ -615,6 +606,15 @@ extern "C" {
* @param rvConf BUCK1, BUCK2, BUCK3 residual voltage configuration. For valid
* values, refer to @ref Pmic_rvConfValues.
*
* @param slewRate BUCK1, BUCK2, or BUCK3 output voltage slew rate. For valid
* values, refer to @ref Pmic_BuckSlewRateValues.
*
* @param deglitchSel BUCK1, BUCK2, or BUCK3 deglitch selection. For valid
* values, refer to @ref Pmic_buckDeglitchSelValues.
*
* @param dischargeSel BUCK1, BUCK2, or BUCK3 discharge selection. For valid
* values, refer to @ref Pmic_BuckDischargeSelValues.
*
* @param ssEn Device internal spread spectrum for buck regulators. When set to
* true, spread spectrum is enabled. Otherwise, spread spectrum is disabled.
*
Expand Down
Loading

0 comments on commit dd2ebf0

Please sign in to comment.