#include <io/cm3.h>
#include <drv/clock_lm3s.h>
#include <io/cm3.h>
#include <drv/clock_lm3s.h>
/* Trig the temperature sampling */
HWREG(ADC0_BASE + ADC_O_PSSI) |= ADC_PSSI_SS3;
/* Trig the temperature sampling */
HWREG(ADC0_BASE + ADC_O_PSSI) |= ADC_PSSI_SS3;
- while (!(HWREG(ADC0_BASE + ADC_O_SSFSTAT3) & ADC_SSFSTAT3_FULL));
+ while (!(HWREG(ADC0_BASE + ADC_O_SSFSTAT3) & ADC_SSFSTAT3_FULL))
+ cpu_relax();
return (uint16_t)HWREG(ADC0_BASE + ADC_O_SSFIFO3);
}
return (uint16_t)HWREG(ADC0_BASE + ADC_O_SSFIFO3);
}