Coproc related info relocated

This commit is contained in:
romolo.manfredini@gmail.com
2012-10-04 13:22:30 +00:00
parent b5a030c9df
commit 48b350a8c2
13 changed files with 40 additions and 16 deletions
+3
View File
@@ -249,6 +249,7 @@ static uint8_t CoProc_appgo_pending ;
uint8_t Volume_read ;
uint8_t Coproc_read ;
int8_t Coproc_temp ;
int8_t Coproc_maxtemp=-127 ;
int8_t Coproc_valid ;
bool get_onlytemp;
static uint8_t *Twi_read_address ;
@@ -452,6 +453,8 @@ extern "C" void TWI0_IRQHandler()
g_rtcTime = gmktime(&utm);
}
Coproc_temp = Co_proc_status[8];
if (Coproc_temp > Coproc_maxtemp)
Coproc_maxtemp=Coproc_temp;
}
TWI0->TWI_PTCR = TWI_PTCR_RXTDIS ; // Stop transfers
if ( TWI0->TWI_SR & TWI_SR_RXRDY ) {
+1
View File
@@ -51,6 +51,7 @@ extern void read_coprocessor( bool onlytemp=false ) ;
extern uint8_t Coproc_read ;
extern int8_t Coproc_valid ;
extern int8_t Coproc_temp ;
extern int8_t Coproc_maxtemp ;
extern uint16_t *nextAudioData;
extern uint16_t nextAudioSize;