Rev 56 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 56 | Rev 61 | ||
---|---|---|---|
Line 1957... | Line 1957... | ||
1957 | / __LL_ADC_CONVERT_DATA_RESOLUTION((__VREFINT_ADC_DATA__), \ |
1957 | / __LL_ADC_CONVERT_DATA_RESOLUTION((__VREFINT_ADC_DATA__), \ |
1958 | (__ADC_RESOLUTION__), \ |
1958 | (__ADC_RESOLUTION__), \ |
1959 | LL_ADC_RESOLUTION_12B) \ |
1959 | LL_ADC_RESOLUTION_12B) \ |
1960 | ) |
1960 | ) |
1961 | 1961 | ||
- | 1962 | /* Note: On device STM32L100, calibration parameters TS_CAL1 and TS_CAL2 are not available. */ |
|
- | 1963 | /* Therefore, helper macro __LL_ADC_CALC_TEMPERATURE() is not available.*/ |
|
- | 1964 | /* Use helper macro @ref __LL_ADC_CALC_TEMPERATURE_TYP_PARAMS(). */ |
|
- | 1965 | #if defined(TEMPSENSOR_CAL1_ADDR_CMSIS) |
|
1962 | /** |
1966 | /** |
1963 | * @brief Helper macro to calculate the temperature (unit: degree Celsius) |
1967 | * @brief Helper macro to calculate the temperature (unit: degree Celsius) |
1964 | * from ADC conversion data of internal temperature sensor. |
1968 | * from ADC conversion data of internal temperature sensor. |
1965 | * @note Computation is using temperature sensor calibration values |
1969 | * @note Computation is using temperature sensor calibration values |
1966 | * stored in system memory for each device during production. |
1970 | * stored in system memory for each device during production. |
Line 2015... | Line 2019... | ||
2015 | - (int32_t) *TEMPSENSOR_CAL1_ADDR) \ |
2019 | - (int32_t) *TEMPSENSOR_CAL1_ADDR) \ |
2016 | ) * (int32_t)(TEMPSENSOR_CAL2_TEMP - TEMPSENSOR_CAL1_TEMP) \ |
2020 | ) * (int32_t)(TEMPSENSOR_CAL2_TEMP - TEMPSENSOR_CAL1_TEMP) \ |
2017 | ) / (int32_t)((int32_t)*TEMPSENSOR_CAL2_ADDR - (int32_t)*TEMPSENSOR_CAL1_ADDR) \ |
2021 | ) / (int32_t)((int32_t)*TEMPSENSOR_CAL2_ADDR - (int32_t)*TEMPSENSOR_CAL1_ADDR) \ |
2018 | ) + TEMPSENSOR_CAL1_TEMP \ |
2022 | ) + TEMPSENSOR_CAL1_TEMP \ |
2019 | ) |
2023 | ) |
- | 2024 | #endif /* TEMPSENSOR_CAL1_ADDR_CMSIS */ |
|
2020 | 2025 | ||
2021 | /** |
2026 | /** |
2022 | * @brief Helper macro to calculate the temperature (unit: degree Celsius) |
2027 | * @brief Helper macro to calculate the temperature (unit: degree Celsius) |
2023 | * from ADC conversion data of internal temperature sensor. |
2028 | * from ADC conversion data of internal temperature sensor. |
2024 | * @note Computation is using temperature sensor typical values |
2029 | * @note Computation is using temperature sensor typical values |