MSPM0: update mspm0-metapac & internal temperature sensor - #6732
Open
bespsm wants to merge 4 commits into
Open
Conversation
bespsm
force-pushed
the
MSPM0-INT-TEMPERATURE
branch
2 times, most recently
from
August 6, 2026 21:51
02d27fc to
b1b9c99
Compare
Contributor
|
Just so we don't end up accidentally duplicating work, I'm currently working on a very large set of low-power improvements in my mspm0-low-power branch Breaking changes
DoneLow power
Clocks
I2C
GPIO
Timers
UART
Build and metadata
ExamplesAround 20 new ones, plus two new low-power example crates. |
Contributor
Author
Thank you for the informing. I don't see any duplicate work so far |
chiptool now generates register values in PascalCase rather than SCREAMING_SNAKE, and emits the key/index fieldsets as newtypes carrying associated constants instead of enums. No functional change.
Add `TempSensorChannel`, an `AdcChannel` for the internal temperature sensor, and `read_temp_calibration_constant()` for the factory trim constant used to convert its readings to a temperature. The sensor is present on every supported family, but the ADC0 channel it is connected to is device specific (11, 28 or 29 per SysConfig's SYS_TEMP_SENSE_CHANNEL), so gate both on a new `temp_sensor` cfg and select the channel per family.
Port TI's `adc12_internal_temp_sensor_mathacl` example, converting the sensor reading to degrees Celsius and Fahrenheit with MATHACL.
bespsm
force-pushed
the
MSPM0-INT-TEMPERATURE
branch
from
August 6, 2026 22:14
b1b9c99 to
e3ce638
Compare
Contributor
Author
|
@i509VCB @CordlessCoder sorry for bothering you guys, just a kind reminder |
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.
I had to update "mspm0-metapac" because only the latest version has "FACTORYREGION" peripheral.
The typing style changes come with with mspm0-metapac (cherry-picked from @CordlessCoder ).
Changes:
Running on g3507 showed following print: