File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed
libraries/Nicla_System/src Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ bool nicla::enable1V8LDO()
84
84
bool nicla::disableLDO ()
85
85
{
86
86
uint8_t ldo_reg = _pmic.getLDOControlRegister ();
87
- ldo_reg &= 0x7F ;
87
+ ldo_reg &= 0x7F ; // Zeroes the EN_LS_LDO bit to turn it off
88
88
_pmic.writeByte (BQ25120A_ADDRESS, BQ25120A_LDO_CTRL, ldo_reg);
89
89
return _pmic.getLDOControlRegister () == ldo_reg;
90
90
}
Original file line number Diff line number Diff line change @@ -39,8 +39,29 @@ class nicla {
39
39
40
40
public:
41
41
static bool begin (bool mountedOnMkr = false );
42
+
43
+ /* *
44
+ * @brief Enables the 3.3V LDO voltage regulator.
45
+ *
46
+ * @return true if the LDO is enabled successfully.
47
+ * This is done by verifying that the register was written correctly.
48
+ */
42
49
static bool enable3V3LDO ();
50
+
51
+ /* *
52
+ * @brief Enables the 1.8V LDO voltage regulator.
53
+ *
54
+ * @return true if the LDO is enabled successfully.
55
+ * This is done by verifying that the register was written correctly.
56
+ */
43
57
static bool enable1V8LDO ();
58
+
59
+ /* *
60
+ * @brief Disables the LDO voltage regulator.
61
+ *
62
+ * @return true if the LDO is disabled successfully.
63
+ * This is done by verifying that the register was written correctly.
64
+ */
44
65
static bool disableLDO ();
45
66
46
67
/* *
You can’t perform that action at this time.
0 commit comments