samples: drivers: adc: update temperature LUT and reference ADC fixes - #875
Open
JuhoEskeli-AlifSemi wants to merge 1 commit into
Open
samples: drivers: adc: update temperature LUT and reference ADC fixes#875JuhoEskeli-AlifSemi wants to merge 1 commit into
JuhoEskeli-AlifSemi wants to merge 1 commit into
Conversation
JuhoEskeli-AlifSemi
force-pushed
the
adc_ldo_lut_changes
branch
from
July 23, 2026 13:09
55626cf to
2162a0d
Compare
Test the internal temperature sensor readings against the recalibrated ADC and the accompanying driver/HAL changes. - Replace the temperature lookup table with the recalibrated data covering ADC codes 885..1341 (-39.9 C .. 85.0 C). - Store the table as int16 tenths of a degree indexed directly by (adc_value - ADC_TEMP_MIN), replacing the float 2D array and linear search with an O(1) lookup and a smaller footprint. - Return -255.0 instead of -1 for out-of-range ADC codes and update the sample to check for the new sentinel. Signed-off-by: Juho Eskeli <juho.eskeli@alifsemi.com>
JuhoEskeli-AlifSemi
force-pushed
the
adc_ldo_lut_changes
branch
from
July 23, 2026 13:11
2162a0d to
8f19ba5
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Test the internal temperature sensor readings against the recalibrated ADC and the accompanying driver/HAL changes.