GitLab now enforces expiry dates on tokens that originally had no set expiration date. Those tokens were given an expiration date of one year later. Please review your personal access tokens, project access tokens and group access tokens to ensure you are aware of upcoming expirations. Administrators of GitLab can find more information on how to identify and mitigate interruption, please take a look at our documentation.
// // while (arch_ioport_get_pin_level(IOPORT_CREATE_PIN(PORTD, 5)));
// result=ads1255_read_fast24();
// goto noauto;
// }
//
// else{
// while (arch_ioport_get_pin_level(IOPORT_CREATE_PIN(PORTD, 5)));
// result=ads1255_read();
// }
//
// if (autogainswitch()==0){
// noauto:
// // if (g_gain == POT_GAIN_300)
// // printf("%u %ld\n\r", TCC1.CNT,result);
// // else if (g_gain == POT_GAIN_3k)
// // printf("%u %ld\n\r", TCC1.CNT, result);
// // else if (g_gain == POT_GAIN_30k)
// // printf("%u %ld000\n\r", TCC1.CNT, result);
// // else if (g_gain == POT_GAIN_300k)
// // printf("%u %ld00\n\r", TCC1.CNT, result);
// // else if (g_gain == POT_GAIN_3M)
// // printf("%u %ld0\n\r", TCC1.CNT, result);
// // else if (g_gain == POT_GAIN_30M)
// // printf("%u %ld\n\r", TCC1.CNT, result);
// // else
// printf("%u %ld\n\r", TCC1.CNT, result);
// }
//
// return;
int32_tresult=ads1255_read_fast24();
staticuint16_tlast_value=0;
uint32_tcurrent=TCC1.CNT;
result=ads1255_read_fast24();
printf("%lu %ld\n\r",(current+last_value)>>1,result);//DAC value is average of current and last timer - approximation of center of averaging window
printf("B\n");
send_data_uint16((current+last_value)>>1);
send_data_int32(result);
// printf("%lu %ld\n\r", (current+last_value)>>1, result); //DAC value is average of current and last timer - approximation of center of averaging window