Skip to content

Commit 6eea373

Browse files
committed
Remove adc control function (deprecated)
1 parent 606ebdb commit 6eea373

2 files changed

Lines changed: 0 additions & 22 deletions

File tree

tanmatsu_coprocessor.c

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#define TANMATSU_COPROCESSOR_I2C_REG_BACKUP_0 22 // 84 bytes
3333
#define TANMATSU_COPROCESSOR_I2C_REG_PMIC_COMM_FAULT 106
3434
#define TANMATSU_COPROCESSOR_I2C_REG_PMIC_FAULT 107
35-
#define TANMATSU_COPROCESSOR_I2C_REG_PMIC_ADC_CONTROL 108
3635
#define TANMATSU_COPROCESSOR_I2C_REG_PMIC_ADC_VBAT_0 109 // LSB
3736
#define TANMATSU_COPROCESSOR_I2C_REG_PMIC_ADC_VBAT_1 110 // MSB
3837
#define TANMATSU_COPROCESSOR_I2C_REG_PMIC_ADC_VSYS_0 111 // LSB
@@ -595,25 +594,6 @@ esp_err_t tanmatsu_coprocessor_get_pmic_faults(tanmatsu_coprocessor_handle_t
595594
return ESP_OK;
596595
}
597596

598-
esp_err_t tanmatsu_coprocessor_set_pmic_adc_control(tanmatsu_coprocessor_handle_t handle, bool trigger,
599-
bool continuous) {
600-
uint8_t value = 0;
601-
if (trigger) {
602-
value |= (1 << 0);
603-
}
604-
if (continuous) {
605-
value |= (1 << 1);
606-
}
607-
ESP_RETURN_ON_ERROR(ts_i2c_master_transmit(handle, handle->dev_handle,
608-
(uint8_t[]){
609-
TANMATSU_COPROCESSOR_I2C_REG_PMIC_ADC_CONTROL,
610-
value,
611-
},
612-
2, TANMATSU_COPROCESSOR_TIMEOUT_MS),
613-
TAG, "Communication fault");
614-
return ESP_OK;
615-
}
616-
617597
esp_err_t tanmatsu_coprocessor_get_pmic_vbat(tanmatsu_coprocessor_handle_t handle, uint16_t* out_vbat) {
618598
uint8_t value[2];
619599
ESP_RETURN_ON_ERROR(ts_i2c_master_transmit_receive(handle, handle->dev_handle,

tanmatsu_coprocessor.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,6 @@ esp_err_t tanmatsu_coprocessor_get_pmic_communication_fault(tanmatsu_coprocessor
244244
bool* out_latch);
245245
esp_err_t tanmatsu_coprocessor_get_pmic_faults(tanmatsu_coprocessor_handle_t handle,
246246
tanmatsu_coprocessor_pmic_faults_t* out_faults);
247-
esp_err_t tanmatsu_coprocessor_set_pmic_adc_control(tanmatsu_coprocessor_handle_t handle, bool trigger,
248-
bool continuous);
249247
esp_err_t tanmatsu_coprocessor_get_pmic_vbat(tanmatsu_coprocessor_handle_t handle, uint16_t* out_vbat);
250248
esp_err_t tanmatsu_coprocessor_get_pmic_vsys(tanmatsu_coprocessor_handle_t handle, uint16_t* out_vsys);
251249
esp_err_t tanmatsu_coprocessor_get_pmic_ts(tanmatsu_coprocessor_handle_t handle, uint16_t* out_ts);

0 commit comments

Comments
 (0)