File tree Expand file tree Collapse file tree 2 files changed +0
-44
lines changed Expand file tree Collapse file tree 2 files changed +0
-44
lines changed Original file line number Diff line number Diff line change @@ -24,45 +24,6 @@ void T114Board::begin() {
2424
2525 pinMode (PIN_VBAT_READ, INPUT);
2626
27- // Enable SoftDevice low-power mode
28- sd_power_mode_set (NRF_POWER_MODE_LOWPWR);
29-
30- // Enable DC/DC converter for better efficiency (REG1 stage)
31- NRF_POWER->DCDCEN = 1 ;
32-
33- // Power down unused communication peripherals
34- // UART1 - Not used on T114
35- NRF_UARTE1->ENABLE = 0 ;
36-
37- // SPIM2/SPIS2 - Not used (SPI is on SPIM0)
38- NRF_SPIM2->ENABLE = 0 ;
39- NRF_SPIS2->ENABLE = 0 ;
40-
41- // TWI1 (I2C1) - Not used (I2C is on TWI0)
42- NRF_TWIM1->ENABLE = 0 ;
43- NRF_TWIS1->ENABLE = 0 ;
44-
45- // PWM modules - Not used for standard T114 functions
46- NRF_PWM1->ENABLE = 0 ;
47- NRF_PWM2->ENABLE = 0 ;
48- NRF_PWM3->ENABLE = 0 ;
49-
50- // PDM (Digital Microphone Interface) - Not used
51- NRF_PDM->ENABLE = 0 ;
52-
53- // I2S - Not used
54- NRF_I2S->ENABLE = 0 ;
55-
56- // QSPI - Not used (no external flash)
57- NRF_QSPI->ENABLE = 0 ;
58-
59- // Disable unused analog peripherals
60- // SAADC channels - only keep what's needed for battery monitoring
61- NRF_SAADC->ENABLE = 0 ; // Re-enable only when needed for measurements
62-
63- // COMP - Comparator not used
64- NRF_COMP->ENABLE = 0 ;
65-
6627#if defined(PIN_BOARD_SDA) && defined(PIN_BOARD_SCL)
6728 Wire.setPins (PIN_BOARD_SDA, PIN_BOARD_SCL);
6829#endif
Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ class T114Board : public mesh::MainBoard {
2727
2828 uint16_t getBattMilliVolts () override {
2929 int adcvalue = 0 ;
30-
31- NRF_SAADC->ENABLE = 1 ;
32-
3330 analogReadResolution (12 );
3431 analogReference (AR_INTERNAL_3_0);
3532 pinMode (PIN_BAT_CTL, OUTPUT); // battery adc can be read only ctrl pin 6 set to high
@@ -39,8 +36,6 @@ class T114Board : public mesh::MainBoard {
3936 adcvalue = analogRead (PIN_VBAT_READ);
4037 digitalWrite (6 , 0 );
4138
42- NRF_SAADC->ENABLE = 0 ;
43-
4439 return (uint16_t )((float )adcvalue * MV_LSB * 4.9 );
4540 }
4641
You can’t perform that action at this time.
0 commit comments