commit | 270255344018e1ecf1d44038840154e20c51787b | [log] [tgz] |
---|---|---|
author | Kevin Zeng <zengk@google.com> | Thu Nov 18 04:49:13 2021 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Nov 18 18:53:32 2021 +0000 |
tree | 69f112d0db9a73705812eaaf370b8d4601abc019 | |
parent | cf5d741ad9087f0dc788f0278f9e46e1f1030586 [diff] |
pw_analog: Avoid signed integer overflow Limits the range of values for Reference voltage settings. Most applications will probably not have a reference voltage different of 2000V+. This will protect most of our voltage calculations. Testing: Host test -- OK Bug: 518 Change-Id: Icb0ec538162669e5a8fc06fd37912725a8b816cd Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/69801 Commit-Queue: Auto-Submit <auto-submit@pigweed.google.com.iam.gserviceaccount.com> Reviewed-by: Ted Pudlik <tpudlik@google.com> Pigweed-Auto-Submit: Kevin Zeng <zengk@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/