Jeff Epler b251e78ac5
samd: size-optimize microcontroller temp calc
Perform most arithmetic with scaled integer values.
For my calibration values
```
const uint32_t NVMCTRL_TEMP_LOG[]={0xfc05511e, 0xcc7ac0f7};
```
the maximum difference between the old and new calculation is 0.50°C.
The difference is smallest (0.13°) at 25.87°C in the old scale.

This reduces mcu_processor_get_temperature from 568 bytes to 348 bytes
(-220 bytes)
2022-10-12 15:44:14 -05:00
..
2022-05-27 12:59:54 -07:00
2022-06-01 11:04:33 -07:00
2022-05-27 12:59:54 -07:00
2020-07-06 19:16:25 +01:00
2022-10-09 19:22:39 -04:00
2022-05-27 12:59:54 -07:00
2022-01-13 15:37:36 -06:00
2022-05-27 12:59:54 -07:00
2022-04-26 14:26:42 -04:00
2021-11-10 10:55:53 -06:00
2021-11-10 10:55:53 -06:00
2022-05-27 12:59:54 -07:00
2022-05-27 12:59:54 -07:00
2022-05-27 12:59:54 -07:00
2021-08-11 12:10:51 -07:00
2022-05-27 12:59:54 -07:00
2022-05-27 12:59:54 -07:00
2022-05-27 12:59:54 -07:00
2022-05-27 12:59:54 -07:00