File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
libraries/Nicla_System/src Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,11 @@ bool nicla::enterShipMode()
99
99
_pmic.writeByte (BQ25120A_ADDRESS, BQ25120A_STATUS, status_reg);
100
100
}
101
101
102
+ uint8_t nicla::readLDOreg ()
103
+ {
104
+ return _pmic.readByte (BQ25120A_ADDRESS, BQ25120A_LDO_CTRL);
105
+ }
106
+
102
107
bool nicla::enableCharge (uint8_t mA )
103
108
{
104
109
digitalWrite (p25, LOW);
Original file line number Diff line number Diff line change 8
8
#include < mbed.h>
9
9
#include < I2C.h>
10
10
11
+ #define USE_FASTCHG_TO_KICK_WATCHDOG 1
12
+
11
13
class nicla {
12
14
13
15
public:
@@ -16,6 +18,7 @@ class nicla {
16
18
static bool enable1V8LDO ();
17
19
static bool disableLDO ();
18
20
static bool enterShipMode ();
21
+ static uint8_t readLDOreg ();
19
22
static bool enableCharge (uint8_t mA = 20 );
20
23
21
24
static RGBled leds;
You can’t perform that action at this time.
0 commit comments