temperature_sensor: Apply new-shared interface in temperature sensor driver

This commit is contained in:
Cao Sen Miao
2023-05-17 17:41:36 +08:00
parent acc6d99572
commit e493a99da2
9 changed files with 58 additions and 25 deletions

View File

@@ -31,6 +31,8 @@ extern "C" {
#define TEMPERATURE_SENSOR_LL_ADC_FACTOR (0.4386)
#define TEMPERATURE_SENSOR_LL_DAC_FACTOR (27.88)
#define TEMPERATURE_SENSOR_LL_OFFSET_FACTOR (20.52)
#define TEMPERATURE_SENSOR_LL_MEASURE_MAX (125)
#define TEMPERATURE_SENSOR_LL_MEASURE_MIN (-40)
/**
* @brief Enable the temperature sensor power.