This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC2640R2F: In what function should I check AON_batmon

Part Number: CC2640R2F

Tool/software: Code Composer Studio

Hello,

I'd like to read the temperature of the onboard temperature measurement device on the CC2640r2 and make it available to a "read" characteristic via BLE connection. Where in simplePeripheral should I put code like this:

    AONBatMonEnable();

    while(1)
    {
      while(!AONBatMonNewTempMeasureReady());
      int32_t temp = AONBatMonTemperatureGetDegC();
    }

Do I need to create an independent thread for this simple action?

Thanks,

Patrick