-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drivers: sensor: stm32_temp #34673
drivers: sensor: stm32_temp #34673
Conversation
1197068
to
79e41bf
Compare
I'd like to make a change in sensor.h after merging #34679 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
Please split the changes into separate commits:
- drivers: adc: Define max acquisition time
- drivers: sensor: Add helper function to convert double to struct sensor_value
- drivers: sensor: Introduce stm32 die temperature driver
- samples: sensor: Add stm32_temp sample application
Add samples/sensor/stm32_temp_sensor/sample.yaml
to ensure the sample gets built in CI.
Add this sensor to tests/drivers/build_all/sensors_i_z.conf
@MaureenHelm Thank you. I did all the requested changes. |
@MaureenHelm can you have a new look ? |
7332b35
to
4a28c66
Compare
@FRASTM I have question about STM32G4 HAL. In this HAL there is no definition for ADC_CHANNEL_TEMPSENSOR, common for all other HALs. Is it possible to add
to file |
d6638d9
to
03dbb43
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor remarkl, otherwise LGTM
@ABOSTM Yes, fixed with ARRAY_SIZE() instead of sizeof(), as this table contains uint16 values. |
@erwango Sorry for disturbing, but looks like I need your help again. Probably my change in file |
Seems like a buildkite limitation, but that's ok. |
Don't worry about that, will look over the CI issue once we have @MaureenHelm's approval. |
Add helper function to convert double to struct sensor_value. Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com>
Required in STM32 tempereture sensor asquisition. Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com>
Enable common path for internal voltage voltage reference source. Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com>
STM32 internal temperature sensor driver. This sensor can be used to measure the temperature of the CPU and its surroundings. Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com>
Demonstating usage of STM32 temperature sensor. Signed-off-by: Eug Krashtan <eug.krashtan@gmail.com>
STM32 internal temperature sensor driver.
This sensor can be used to measure the temperature of the CPU
and its surroundings.
Related issue: #34538
Signed-off-by: Eug Krashtan eug.krashtan@gmail.com