Coprocessor temperature support

This commit is contained in:
romolo.manfredini@gmail.com
2012-10-03 15:55:22 +00:00
parent f2154feda1
commit 3179dd1d41
4 changed files with 6 additions and 0 deletions
+2
View File
@@ -973,6 +973,8 @@ void menuProcHardware(uint8_t event)
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:
+1
View File
@@ -275,6 +275,7 @@ long Open9xSim::onTimeout(FXObject*,FXSelector,void*)
PIOB->PIO_PDSR |= ERSKY9X_MENU_MASK;
// PIOA->PIO_PDSR = 0xFFFFFFFF;
temperature = 67;
Coproc_temp = 45;
maxTemperature = 70;
#elif defined(PCBGRUVIN9X)
+2
View File
@@ -234,6 +234,7 @@ static uint8_t CoProc_write_pending ;
static uint8_t CoProc_appgo_pending ;
uint8_t Volume_read ;
uint8_t Coproc_read ;
int8_t Coproc_temp ;
int8_t Coproc_valid ;
static uint8_t *Twi_read_address ;
static uint8_t TwiOperation ;
@@ -427,6 +428,7 @@ extern "C" void TWI0_IRQHandler()
utm.tm_mday = Co_proc_status[4] ;
utm.tm_mon = Co_proc_status[5] - 1;
utm.tm_year = (Co_proc_status[6] + ( Co_proc_status[7] << 8 )) - 1900;
Coproc_temp = Co_proc_status[8];
g_rtcTime = gmktime(&utm);
}
TWI0->TWI_PTCR = TWI_PTCR_RXTDIS ; // Stop transfers
+1
View File
@@ -49,6 +49,7 @@ extern void write_coprocessor( uint8_t *ptr, uint32_t count ) ;
extern void read_coprocessor( void ) ;
extern uint8_t Coproc_read ;
extern int8_t Coproc_valid ;
extern int8_t Coproc_temp ;
extern uint16_t *nextAudioData;
extern uint16_t nextAudioSize;