Coproc related info relocated
This commit is contained in:
@@ -776,6 +776,14 @@ void menuGeneralVersion(uint8_t event)
|
|||||||
lcd_putsLeft(3*FH, stamp2);
|
lcd_putsLeft(3*FH, stamp2);
|
||||||
lcd_putsLeft(4*FH, stamp3);
|
lcd_putsLeft(4*FH, stamp3);
|
||||||
lcd_putsLeft(5*FH, stamp4);
|
lcd_putsLeft(5*FH, stamp4);
|
||||||
|
#if defined(PCBSKY9X)
|
||||||
|
if (Coproc_valid!=1) {
|
||||||
|
lcd_putsLeft(6*FH, PSTR("CoPr:"));
|
||||||
|
lcd_outdez8(10*FW, 6*FH, Coproc_read);
|
||||||
|
} else {
|
||||||
|
lcd_putsLeft(6*FH, PSTR("CoPr: ---"));
|
||||||
|
}
|
||||||
|
#endif
|
||||||
lcd_putsLeft(7*FH, STR_EEPROMV);
|
lcd_putsLeft(7*FH, STR_EEPROMV);
|
||||||
lcd_outdezAtt(8*FW, 7*FH, g_eeGeneral.myVers, LEFT);
|
lcd_outdezAtt(8*FW, 7*FH, g_eeGeneral.myVers, LEFT);
|
||||||
}
|
}
|
||||||
@@ -883,7 +891,6 @@ void menuGeneralDiagAna(uint8_t event)
|
|||||||
|
|
||||||
#if defined(PCBSKY9X)
|
#if defined(PCBSKY9X)
|
||||||
enum menuGeneralHwItems {
|
enum menuGeneralHwItems {
|
||||||
ITEM_SETUP_HW_COPROC,
|
|
||||||
ITEM_SETUP_HW_OPTREX_DISPLAY,
|
ITEM_SETUP_HW_OPTREX_DISPLAY,
|
||||||
ITEM_SETUP_HW_MAX
|
ITEM_SETUP_HW_MAX
|
||||||
};
|
};
|
||||||
@@ -902,13 +909,6 @@ void menuGeneralHardware(uint8_t event)
|
|||||||
uint8_t attr = (sub == k ? blink : 0);
|
uint8_t attr = (sub == k ? blink : 0);
|
||||||
|
|
||||||
switch(k) {
|
switch(k) {
|
||||||
case ITEM_SETUP_HW_COPROC:
|
|
||||||
lcd_putsLeft(y, STR_COPROC);
|
|
||||||
lcd_outhex4(GENERAL_HW_PARAM_OFS, y, (Coproc_valid << 8) + Coproc_read);
|
|
||||||
lcd_putsLeft(y+FH*2, "Coproc temp");
|
|
||||||
putsTelemetryValue(GENERAL_HW_PARAM_OFS+3*FW-2, y+FH*2, Coproc_temp, UNIT_DEGREES,0) ;
|
|
||||||
break;
|
|
||||||
|
|
||||||
case ITEM_SETUP_HW_OPTREX_DISPLAY:
|
case ITEM_SETUP_HW_OPTREX_DISPLAY:
|
||||||
// TODO remove STR_OPTREX_DISPLAY + translations here
|
// TODO remove STR_OPTREX_DISPLAY + translations here
|
||||||
g_eeGeneral.optrexDisplay = selectMenuItem(GENERAL_HW_PARAM_OFS, y, PSTR("LCD"), PSTR("\006NormalOptrex"), g_eeGeneral.optrexDisplay, 0, 1, attr, event);
|
g_eeGeneral.optrexDisplay = selectMenuItem(GENERAL_HW_PARAM_OFS, y, PSTR("LCD"), PSTR("\006NormalOptrex"), g_eeGeneral.optrexDisplay, 0, 1, attr, event);
|
||||||
|
|||||||
+4
-3
@@ -274,9 +274,10 @@ long Open9xSim::onTimeout(FXObject*,FXSelector,void*)
|
|||||||
ERSKY9X_EXIT_PIO->PIO_PDSR |= ERSKY9X_EXIT_MASK;
|
ERSKY9X_EXIT_PIO->PIO_PDSR |= ERSKY9X_EXIT_MASK;
|
||||||
PIOB->PIO_PDSR |= ERSKY9X_MENU_MASK;
|
PIOB->PIO_PDSR |= ERSKY9X_MENU_MASK;
|
||||||
// PIOA->PIO_PDSR = 0xFFFFFFFF;
|
// PIOA->PIO_PDSR = 0xFFFFFFFF;
|
||||||
temperature = 67;
|
temperature = 31;
|
||||||
Coproc_temp = 45;
|
Coproc_temp = 23;
|
||||||
maxTemperature = 70;
|
Coproc_maxtemp = 28;
|
||||||
|
maxTemperature = 42;
|
||||||
|
|
||||||
#elif defined(PCBGRUVIN9X)
|
#elif defined(PCBGRUVIN9X)
|
||||||
uint8_t pin = (pinl & ~0x3f);
|
uint8_t pin = (pinl & ~0x3f);
|
||||||
|
|||||||
@@ -249,6 +249,7 @@ static uint8_t CoProc_appgo_pending ;
|
|||||||
uint8_t Volume_read ;
|
uint8_t Volume_read ;
|
||||||
uint8_t Coproc_read ;
|
uint8_t Coproc_read ;
|
||||||
int8_t Coproc_temp ;
|
int8_t Coproc_temp ;
|
||||||
|
int8_t Coproc_maxtemp=-127 ;
|
||||||
int8_t Coproc_valid ;
|
int8_t Coproc_valid ;
|
||||||
bool get_onlytemp;
|
bool get_onlytemp;
|
||||||
static uint8_t *Twi_read_address ;
|
static uint8_t *Twi_read_address ;
|
||||||
@@ -452,6 +453,8 @@ extern "C" void TWI0_IRQHandler()
|
|||||||
g_rtcTime = gmktime(&utm);
|
g_rtcTime = gmktime(&utm);
|
||||||
}
|
}
|
||||||
Coproc_temp = Co_proc_status[8];
|
Coproc_temp = Co_proc_status[8];
|
||||||
|
if (Coproc_temp > Coproc_maxtemp)
|
||||||
|
Coproc_maxtemp=Coproc_temp;
|
||||||
}
|
}
|
||||||
TWI0->TWI_PTCR = TWI_PTCR_RXTDIS ; // Stop transfers
|
TWI0->TWI_PTCR = TWI_PTCR_RXTDIS ; // Stop transfers
|
||||||
if ( TWI0->TWI_SR & TWI_SR_RXRDY ) {
|
if ( TWI0->TWI_SR & TWI_SR_RXRDY ) {
|
||||||
|
|||||||
@@ -51,6 +51,7 @@ extern void read_coprocessor( bool onlytemp=false ) ;
|
|||||||
extern uint8_t Coproc_read ;
|
extern uint8_t Coproc_read ;
|
||||||
extern int8_t Coproc_valid ;
|
extern int8_t Coproc_valid ;
|
||||||
extern int8_t Coproc_temp ;
|
extern int8_t Coproc_temp ;
|
||||||
|
extern int8_t Coproc_maxtemp ;
|
||||||
|
|
||||||
extern uint16_t *nextAudioData;
|
extern uint16_t *nextAudioData;
|
||||||
extern uint16_t nextAudioSize;
|
extern uint16_t nextAudioSize;
|
||||||
|
|||||||
@@ -130,8 +130,21 @@ void menuStatisticsDebug(uint8_t event)
|
|||||||
lcd_putsLeft(3*FH, STR_CPU_TEMP);
|
lcd_putsLeft(3*FH, STR_CPU_TEMP);
|
||||||
putsTelemetryValue(MENU_DEBUG_COL_OFS, 3*FH, getTemperature(), UNIT_DEGREES, 0);
|
putsTelemetryValue(MENU_DEBUG_COL_OFS, 3*FH, getTemperature(), UNIT_DEGREES, 0);
|
||||||
putsTelemetryValue(20*FW+2, 3*FH, maxTemperature+g_eeGeneral.temperatureCalib, UNIT_DEGREES, 0);
|
putsTelemetryValue(20*FW+2, 3*FH, maxTemperature+g_eeGeneral.temperatureCalib, UNIT_DEGREES, 0);
|
||||||
lcd_putsLeft(4*FH, STR_TMAINMAXMS);
|
lcd_putsLeft(4*FH, STR_COPROC_TEMP);
|
||||||
lcd_outdezAtt(MENU_DEBUG_COL_OFS, 4*FH, (g_timeMainMax)/20, PREC2);
|
if (Coproc_read>2) {
|
||||||
|
putsTelemetryValue(MENU_DEBUG_COL_OFS, 4*FH, Coproc_temp, UNIT_DEGREES, 0);
|
||||||
|
} else {
|
||||||
|
lcd_puts(MENU_DEBUG_COL_OFS-2*FW,4*FH,PSTR("---"));
|
||||||
|
}
|
||||||
|
if (Coproc_maxtemp!=-127) {
|
||||||
|
putsTelemetryValue(20*FW+2, 4*FH, Coproc_maxtemp, UNIT_DEGREES, 0);
|
||||||
|
} else {
|
||||||
|
lcd_puts(18*FW+2,4*FH,PSTR("---"));
|
||||||
|
}
|
||||||
|
lcd_putsLeft(5*FH, STR_TMAINMAXMS);
|
||||||
|
lcd_outdezAtt(MENU_DEBUG_COL_OFS, 5*FH, (g_timeMainMax)/20, PREC2);
|
||||||
|
lcd_putsLeft(6*FH, STR_FREESTACKMINB);
|
||||||
|
lcd_outdezAtt(14*FW, 6*FH, stack_free(), UNSIGN) ;
|
||||||
#else
|
#else
|
||||||
lcd_putsLeft(1*FH, STR_TMR1LATMAXUS);
|
lcd_putsLeft(1*FH, STR_TMR1LATMAXUS);
|
||||||
lcd_outdez8(MENU_DEBUG_COL_OFS , 1*FH, g_tmr1Latency_max/2 );
|
lcd_outdez8(MENU_DEBUG_COL_OFS , 1*FH, g_tmr1Latency_max/2 );
|
||||||
@@ -141,10 +154,8 @@ void menuStatisticsDebug(uint8_t event)
|
|||||||
lcd_outdez8(MENU_DEBUG_COL_OFS , 3*FH, (g_tmr1Latency_max - g_tmr1Latency_min) /2 );
|
lcd_outdez8(MENU_DEBUG_COL_OFS , 3*FH, (g_tmr1Latency_max - g_tmr1Latency_min) /2 );
|
||||||
lcd_putsLeft(4*FH, STR_TMAINMAXMS);
|
lcd_putsLeft(4*FH, STR_TMAINMAXMS);
|
||||||
lcd_outdezAtt(MENU_DEBUG_COL_OFS, 4*FH, (g_timeMainMax*100)/16, PREC2);
|
lcd_outdezAtt(MENU_DEBUG_COL_OFS, 4*FH, (g_timeMainMax*100)/16, PREC2);
|
||||||
#endif
|
|
||||||
|
|
||||||
lcd_putsLeft(5*FH, STR_FREESTACKMINB);
|
lcd_putsLeft(5*FH, STR_FREESTACKMINB);
|
||||||
lcd_outdezAtt(14*FW, 5*FH, stack_free(), UNSIGN) ;
|
lcd_outdezAtt(14*FW, 5*FH, stack_free(), UNSIGN) ;
|
||||||
|
#endif
|
||||||
lcd_puts(3*FW, 7*FH, STR_MENUTORESET);
|
lcd_puts(3*FW, 7*FH, STR_MENUTORESET);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -343,6 +343,7 @@ const pm_char STR_CPU_TEMP[] PROGMEM = TR_CPU_TEMP;
|
|||||||
const pm_char STR_CPU_CURRENT[] PROGMEM = TR_CPU_CURRENT;
|
const pm_char STR_CPU_CURRENT[] PROGMEM = TR_CPU_CURRENT;
|
||||||
const pm_char STR_CPU_MAH[] PROGMEM = TR_CPU_MAH;
|
const pm_char STR_CPU_MAH[] PROGMEM = TR_CPU_MAH;
|
||||||
const pm_char STR_COPROC[] PROGMEM = TR_COPROC;
|
const pm_char STR_COPROC[] PROGMEM = TR_COPROC;
|
||||||
|
const pm_char STR_COPROC_TEMP[] PROGMEM = TR_COPROC_TEMP;
|
||||||
const pm_char STR_TEMPWARNING[] PROGMEM = TR_TEMPWARNING;
|
const pm_char STR_TEMPWARNING[] PROGMEM = TR_TEMPWARNING;
|
||||||
const pm_char STR_CAPAWARNING[] PROGMEM = TR_CAPAWARNING;
|
const pm_char STR_CAPAWARNING[] PROGMEM = TR_CAPAWARNING;
|
||||||
const pm_char STR_FUNC[] PROGMEM = TR_FUNC;
|
const pm_char STR_FUNC[] PROGMEM = TR_FUNC;
|
||||||
|
|||||||
@@ -424,6 +424,7 @@ extern const pm_char STR_CPU_TEMP[];
|
|||||||
extern const pm_char STR_CPU_CURRENT[];
|
extern const pm_char STR_CPU_CURRENT[];
|
||||||
extern const pm_char STR_CPU_MAH[];
|
extern const pm_char STR_CPU_MAH[];
|
||||||
extern const pm_char STR_COPROC[];
|
extern const pm_char STR_COPROC[];
|
||||||
|
extern const pm_char STR_COPROC_TEMP[];
|
||||||
extern const pm_char STR_CAPAWARNING[];
|
extern const pm_char STR_CAPAWARNING[];
|
||||||
extern const pm_char STR_TEMPWARNING[];
|
extern const pm_char STR_TEMPWARNING[];
|
||||||
extern const pm_char STR_FUNC[];
|
extern const pm_char STR_FUNC[];
|
||||||
|
|||||||
@@ -417,6 +417,7 @@
|
|||||||
#define TR_CPU_CURRENT "Current\011>"
|
#define TR_CPU_CURRENT "Current\011>"
|
||||||
#define TR_CPU_MAH "Consumpt."
|
#define TR_CPU_MAH "Consumpt."
|
||||||
#define TR_COPROC "CoProc."
|
#define TR_COPROC "CoProc."
|
||||||
|
#define TR_COPROC_TEMP "tepl. MB \007>"
|
||||||
#define TR_CAPAWARNING "Capacity Warning"
|
#define TR_CAPAWARNING "Capacity Warning"
|
||||||
#define TR_TEMPWARNING "Temp Warning"
|
#define TR_TEMPWARNING "Temp Warning"
|
||||||
#define TR_FUNC "Fun."
|
#define TR_FUNC "Fun."
|
||||||
|
|||||||
@@ -417,6 +417,7 @@
|
|||||||
#define TR_CPU_CURRENT "Current\011>"
|
#define TR_CPU_CURRENT "Current\011>"
|
||||||
#define TR_CPU_MAH "Consumpt."
|
#define TR_CPU_MAH "Consumpt."
|
||||||
#define TR_COPROC "CoProc."
|
#define TR_COPROC "CoProc."
|
||||||
|
#define TR_COPROC_TEMP "MB temp. \007>"
|
||||||
#define TR_CAPAWARNING "Capacity Warning"
|
#define TR_CAPAWARNING "Capacity Warning"
|
||||||
#define TR_TEMPWARNING "Temp Warning"
|
#define TR_TEMPWARNING "Temp Warning"
|
||||||
#define TR_FUNC "Func"
|
#define TR_FUNC "Func"
|
||||||
|
|||||||
@@ -422,6 +422,7 @@
|
|||||||
#define TR_CPU_CURRENT "Current\011>"
|
#define TR_CPU_CURRENT "Current\011>"
|
||||||
#define TR_CPU_MAH "Consumpt."
|
#define TR_CPU_MAH "Consumpt."
|
||||||
#define TR_COPROC "CoProc."
|
#define TR_COPROC "CoProc."
|
||||||
|
#define TR_COPROC_TEMP "MB Temp. \007>"
|
||||||
#define TR_CAPAWARNING "Capacity Warning"
|
#define TR_CAPAWARNING "Capacity Warning"
|
||||||
#define TR_TEMPWARNING "Temp Warning"
|
#define TR_TEMPWARNING "Temp Warning"
|
||||||
#define TR_FUNC "Func"
|
#define TR_FUNC "Func"
|
||||||
|
|||||||
@@ -416,6 +416,7 @@
|
|||||||
#define TR_CPU_CURRENT "Courant\011>"
|
#define TR_CPU_CURRENT "Courant\011>"
|
||||||
#define TR_CPU_MAH "Consomm."
|
#define TR_CPU_MAH "Consomm."
|
||||||
#define TR_COPROC "CoProc."
|
#define TR_COPROC "CoProc."
|
||||||
|
#define TR_COPROC_TEMP "Temp. MB \007>"
|
||||||
#define TR_CAPAWARNING "Capacity Warning"
|
#define TR_CAPAWARNING "Capacity Warning"
|
||||||
#define TR_TEMPWARNING "Alarme temp"
|
#define TR_TEMPWARNING "Alarme temp"
|
||||||
#define TR_FUNC "Fonc"
|
#define TR_FUNC "Fonc"
|
||||||
|
|||||||
@@ -417,6 +417,7 @@
|
|||||||
#define TR_CPU_CURRENT "Corrente\011>"
|
#define TR_CPU_CURRENT "Corrente\011>"
|
||||||
#define TR_CPU_MAH "Consumo"
|
#define TR_CPU_MAH "Consumo"
|
||||||
#define TR_COPROC "CoProc."
|
#define TR_COPROC "CoProc."
|
||||||
|
#define TR_COPROC_TEMP "Temp. MB \007>"
|
||||||
#define TR_CAPAWARNING "Avviso Capacita'"
|
#define TR_CAPAWARNING "Avviso Capacita'"
|
||||||
#define TR_TEMPWARNING "Avviso Temp."
|
#define TR_TEMPWARNING "Avviso Temp."
|
||||||
#define TR_FUNC "Funz"
|
#define TR_FUNC "Funz"
|
||||||
|
|||||||
@@ -415,6 +415,7 @@
|
|||||||
#define TR_CPU_CURRENT "Str\202m\013>"
|
#define TR_CPU_CURRENT "Str\202m\013>"
|
||||||
#define TR_CPU_MAH "F\202rbrukn."
|
#define TR_CPU_MAH "F\202rbrukn."
|
||||||
#define TR_COPROC "CoProc."
|
#define TR_COPROC "CoProc."
|
||||||
|
#define TR_COPROC_TEMP "MB temp. \007>"
|
||||||
#define TR_CAPAWARNING "Kapacitetsvarning"
|
#define TR_CAPAWARNING "Kapacitetsvarning"
|
||||||
#define TR_TEMPWARNING "Tempvarning "
|
#define TR_TEMPWARNING "Tempvarning "
|
||||||
#define TR_FUNC "Funk"
|
#define TR_FUNC "Funk"
|
||||||
|
|||||||
Reference in New Issue
Block a user