Where I put this code to measure temperature in the GenericApp (I am using the cc2530 kit SmartRF05EB):
TR0 | = 0x01, / / Must be modified prior TR0 to ATEST,
ATEST | = 0x01 / / P0_0 and P0_1 Otherwise Forced with 0
uint16 tempSample = HalAdcRead (HAL_ADC_CHN_TEMP, HAL_ADC_RESOLUTION_12);
TR0 & = ~ 0x01;
ATEST & = ~ 0x01;