summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/debug_menu.c8
-rw-r--r--firmware/export/as3514.h1
2 files changed, 7 insertions, 2 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index f448d30b3c..21ed3e119c 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -97,6 +97,9 @@
97#include "debug-target.h" 97#include "debug-target.h"
98#endif 98#endif
99 99
100#include "i2c-pp.h"
101#include "as3514.h"
102
100/*---------------------------------------------------*/ 103/*---------------------------------------------------*/
101/* SPECIAL DEBUG STUFF */ 104/* SPECIAL DEBUG STUFF */
102/*---------------------------------------------------*/ 105/*---------------------------------------------------*/
@@ -1179,8 +1182,7 @@ bool dbg_ports(void)
1179 snprintf(buf, sizeof(buf), "REM: %03x PAD: %03x", 1182 snprintf(buf, sizeof(buf), "REM: %03x PAD: %03x",
1180 adc_read(ADC_REMOTE), adc_read(ADC_SCROLLPAD)); 1183 adc_read(ADC_REMOTE), adc_read(ADC_SCROLLPAD));
1181 lcd_puts(0, line++, buf); 1184 lcd_puts(0, line++, buf);
1182#elif defined(SANSA_E200) 1185#elif defined(SANSA_E200)
1183 line++;
1184 snprintf(buf, sizeof(buf), "ADC_BVDD: %4d", adc_read(ADC_BVDD)); 1186 snprintf(buf, sizeof(buf), "ADC_BVDD: %4d", adc_read(ADC_BVDD));
1185 lcd_puts(0, line++, buf); 1187 lcd_puts(0, line++, buf);
1186 snprintf(buf, sizeof(buf), "ADC_RTCSUP: %4d", adc_read(ADC_RTCSUP)); 1188 snprintf(buf, sizeof(buf), "ADC_RTCSUP: %4d", adc_read(ADC_RTCSUP));
@@ -1207,6 +1209,8 @@ bool dbg_ports(void)
1207 lcd_puts(0, line++, buf); 1209 lcd_puts(0, line++, buf);
1208 snprintf(buf, sizeof(buf), "ADC_VBAT: %4d", adc_read(ADC_VBAT)); 1210 snprintf(buf, sizeof(buf), "ADC_VBAT: %4d", adc_read(ADC_VBAT));
1209 lcd_puts(0, line++, buf); 1211 lcd_puts(0, line++, buf);
1212 snprintf(buf, sizeof(buf), "CHARGER: %02X/%02X", i2c_readbyte(AS3514_I2C_ADDR, CHRGR), i2c_readbyte(AS3514_I2C_ADDR, IRQ_ENRD0));
1213 lcd_puts(0, line++, buf);
1210#endif 1214#endif
1211 lcd_update(); 1215 lcd_update();
1212 if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL)) 1216 if (button_get_w_tmo(HZ/10) == (DEBUG_CANCEL|BUTTON_REL))
diff --git a/firmware/export/as3514.h b/firmware/export/as3514.h
index 999563d33c..a1c061905d 100644
--- a/firmware/export/as3514.h
+++ b/firmware/export/as3514.h
@@ -53,6 +53,7 @@ extern void audiohw_set_sample_rate(int sampling_control);
53#define PLLMODE 0x1d 53#define PLLMODE 0x1d
54 54
55#define SYSTEM 0x20 55#define SYSTEM 0x20
56#define CHRGR 0x22
56#define DCDC15 0x23 57#define DCDC15 0x23
57#define SUPERVISOR 0x24 58#define SUPERVISOR 0x24
58 59