add calculations of T & P by ADC; Release mode still have problems

This commit is contained in:
Edward Emelianov
2023-05-15 22:58:39 +03:00
parent a67da85f55
commit 54155fdca9
10 changed files with 127 additions and 24 deletions

View File

@@ -42,6 +42,7 @@ static uint8_t I2Cbuf[256], i2cbuflen = 0; // buffer for DMA tx/rx and its len
static inline int isI2Cbusy(){
cntr = Tms;
do{
IWDG->KR = IWDG_REFRESH;
if(Tms - cntr > I2C_TIMEOUT){ USND("Timeout, DMA transfer in progress?"); return 1;}
}while(I2Cbusy);
return 0;