Skip to content

Commit

Permalink
an update of XPowers Library [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Jun 1, 2024
1 parent 4a66793 commit dfdf24c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
#define SOC_GPIO_PIN_T3S3_CONS_TX 43

// GNSS module (ext.)
#define SOC_GPIO_PIN_T3S3_GNSS_RX 4
#define SOC_GPIO_PIN_T3S3_GNSS_TX 5
#define SOC_GPIO_PIN_T3S3_GNSS_PPS 19
#define SOC_GPIO_PIN_T3S3_GNSS_RX 35 /* TBD */
#define SOC_GPIO_PIN_T3S3_GNSS_TX 38 /* TBD */
#define SOC_GPIO_PIN_T3S3_GNSS_PPS 36 /* TBD */

// USB CDC/JTAG
#define SOC_GPIO_PIN_T3S3_USB_DP 20
#define SOC_GPIO_PIN_T3S3_USB_DN 19

// SPI
// RADIO SPI
#define SOC_GPIO_PIN_T3S3_MOSI 6
#define SOC_GPIO_PIN_T3S3_MISO 3
#define SOC_GPIO_PIN_T3S3_SCK 5
Expand All @@ -27,8 +27,8 @@
#define SOC_GPIO_PIN_T3S3_ANT_TX 10

// I2C (ext.)
#define SOC_GPIO_PIN_T3S3_SDA 17
#define SOC_GPIO_PIN_T3S3_SCL 18
#define SOC_GPIO_PIN_T3S3_SDA 45 /* TBD */
#define SOC_GPIO_PIN_T3S3_SCL 46 /* TBD */

// status LED
#define SOC_GPIO_PIN_T3S3_LED 37
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2387,7 +2387,7 @@ public:
if (opt >= XPOWERS_AXP2101_CHG_VOL_MAX)return false;
int val = readRegister(XPOWERS_AXP2101_CV_CHG_VOL_SET);
if (val == -1)return false;
val &= 0xFC;
val &= 0xF8;
return 0 == writeRegister(XPOWERS_AXP2101_CV_CHG_VOL_SET, val | opt);
}

Expand All @@ -2397,7 +2397,7 @@ public:
*/
uint8_t getChargeTargetVoltage(void)
{
return (readRegister(XPOWERS_AXP2101_CV_CHG_VOL_SET) & 0x03);
return (readRegister(XPOWERS_AXP2101_CV_CHG_VOL_SET) & 0x07);
}


Expand Down

0 comments on commit dfdf24c

Please sign in to comment.