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()
9999 _pmic.writeByte (BQ25120A_ADDRESS, BQ25120A_STATUS, status_reg);
100100}
101101
102+ uint8_t nicla::readLDOreg ()
103+ {
104+ return _pmic.readByte (BQ25120A_ADDRESS, BQ25120A_LDO_CTRL);
105+ }
106+
102107bool nicla::enableCharge (uint8_t mA )
103108{
104109 digitalWrite (p25, LOW);
Original file line number Diff line number Diff line change 88#include < mbed.h>
99#include < I2C.h>
1010
11+ #define USE_FASTCHG_TO_KICK_WATCHDOG 1
12+
1113class nicla {
1214
1315public:
@@ -16,6 +18,7 @@ class nicla {
1618 static bool enable1V8LDO ();
1719 static bool disableLDO ();
1820 static bool enterShipMode ();
21+ static uint8_t readLDOreg ();
1922 static bool enableCharge (uint8_t mA = 20 );
2023
2124 static RGBled leds;
You can’t perform that action at this time.
0 commit comments