The following codes show you how to use internal temperature sensor reading inside CC26xx/CC13xx.
1. Add "#include DeviceFamily_constructPath(driverlib/aon_batmon.h)"
2. Use the following codes to do internal temperature sensor reading into curr_tmp.
int32_t curr_tmp;
AONBatMonEnable();
curr_tmp=AONBatMonTemperatureGetDegC();
AONBatMonDisable();
No comments:
Post a Comment