/* Trig the temperature sampling */
HWREG(ADC0_BASE + ADC_O_PSSI) |= ADC_PSSI_SS3;
+ /* Poll untill acquisition end */
+ while (!(HWREG(ADC0_BASE + ADC_O_SSFSTAT3) & ADC_SSFSTAT3_FULL));
+
return (uint16_t)HWREG(ADC0_BASE + ADC_O_SSFIFO3);
}
/* Trig the temperature sampling */
HWREG(ADC0_BASE + ADC_O_PSSI) |= ADC_PSSI_SS3;
+ /* Poll untill acquisition end */
+ while (!(HWREG(ADC0_BASE + ADC_O_SSFSTAT3) & ADC_SSFSTAT3_FULL));
+
return (uint16_t)(14750 - ADC_RANGECONV(HWREG(ADC0_BASE + ADC_O_SSFIFO3), 0, 300) * 75);
}