circuitpython/ports/atmel-samd/common-hal
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
..
_pew Conditionalize LTO 2022-05-27 12:59:54 -07:00
alarm allow preserving pin state during deep sleep 2022-09-15 17:35:14 -04:00
analogio fix ai-thinker creation ids; fix some typos elsewhere 2022-10-03 15:29:03 -04:00
audiobusio Fix PDMIn.c formatting 2022-06-01 11:04:33 -07:00
audioio Conditionalize LTO 2022-05-27 12:59:54 -07:00
board Add license to some obvious files. 2020-07-06 19:16:25 +01:00
busio save about 112 bytes 2022-10-09 19:22:39 -04:00
canio Initial broadcom port for Raspberry Pi 2021-11-22 14:54:44 -08:00
countio Conditionalize LTO 2022-05-27 12:59:54 -07:00
digitalio cyw43 basic gpio support, hwaddr in boot_out 2022-09-28 10:06:33 -05:00
floppyio Add floppyio 2022-01-13 15:37:36 -06:00
frequencyio Conditionalize LTO 2022-05-27 12:59:54 -07:00
i2ctarget Change I2C terminology from "peripheral" to "target" 2022-08-09 13:13:19 -04:00
imagecapture address jepler's comments and further squeezes 2022-05-20 10:10:55 -04:00
microcontroller samd: size-optimize microcontroller temp calc 2022-10-12 15:44:14 -05:00
neopixel_write remove stray space 2022-04-26 14:26:42 -04:00
nvm Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
os Additional missing-prototypes fixes 2021-11-10 10:55:53 -06:00
paralleldisplay Also fix the read pin in the atmel and rp2040 ports 2022-03-06 11:33:07 +01:00
ps2io Conditionalize LTO 2022-05-27 12:59:54 -07:00
pulseio Conditionalize LTO 2022-05-27 12:59:54 -07:00
pwmio Conditionalize LTO 2022-05-27 12:59:54 -07:00
rgbmatrix Fix build with filter to do OR 2021-08-11 12:10:51 -07:00
rotaryio Conditionalize LTO 2022-05-27 12:59:54 -07:00
rtc Conditionalize LTO 2022-05-27 12:59:54 -07:00
sdioio Conditionalize LTO 2022-05-27 12:59:54 -07:00
supervisor codeformat: Fix filename matching 2021-04-30 10:48:08 -05:00
touchio Conditionalize LTO 2022-05-27 12:59:54 -07:00
watchdog Fix other INTENCLR and INTENSET to write whole reg 2021-12-12 22:25:44 -05:00