How I can measure temperature through of the reading of the ADC. I am using the following code in the GenericApp, but I do not know where use it in this code :
TR0 |= 0x01; // TR0 must be modified prior to ATEST,
ATEST |= 0x01; // otherwise P0_0 and P0_1 forced with 0
uint16 tempSample = HalAdcRead( HAL_ADC_CHN_TEMP, HAL_ADC_RESOLUTION_12 );
TR0 &= ~0x01;
ATEST &= ~0x01;