Comments (5)
Hello @mosimasip,
in stm32l0xx_hal_adc.c It is stated in the comment for HAL_ADC_ConfigChannel that
In case of usage of internal measurement channels:
* VrefInt/Vlcd(STM32L0x3xx only)/TempSensor
If you use VrefInt or TempSensor, you just need to respect the Sampling time.
Please can you clarify your request or give me more details about your problem?
Regards,
Rania
from stm32l0xx_hal_driver.
As I states. The function comment for HAL_ADCEx_EnableVREFINT() and HAL_ADCEx_EnableVREFINTTempSensor() are wrong. They say "This API is obsolete. This configuration is done in HAL_ADC_ConfigChannel()". They are not obsolete and HAL_ADC_ConfigChannel() does not configure the same things as HAL_ADCEx_EnableVREFINT() and HAL_ADCEx_EnableVREFINTTempSensor().
from stm32l0xx_hal_driver.
Hello @mosimasip,
The function HAL_ADC_ConfigChannel effectively configures VrefInt and the temperature sensor. Thus, it might be possible to do without the functions HAL_ADCEx_EnableVREFINT...(). However, the driver documentation states that these functions should be called upon exiting Low power mode. The exact reason is unclear, but it is likely to be valid.
In summary, these functions are only necessary when exiting LowPower mode. These APIs have been marked "obsolete" because their functionality has been integrated into the HAL_ADC_ConfigChannel function. And for LowPower mode, one could use LL_ADC_SetCommonPathInternalCh.
We will perform an update in the comment section of the HAL_ADCEx_EnableVREFINT
, HAL_ADC_ConfigChannelfunction
and HAL_ADC_Init
also in The introduction of .c
Regards,
Rania
from stm32l0xx_hal_driver.
ST Internal Reference: 180731
from stm32l0xx_hal_driver.
Fixed in : 8698427
from stm32l0xx_hal_driver.
Related Issues (11)
- Improper EXTI reset in HAL_GPIO_DeInit() HOT 5
- An I2C NACK during memory address transfer goes undetected. HOT 4
- Inconsistent CMSIS core tag in README of HAL vs. CMSIS device HOT 3
- I2C Slave mode problem while receiving data - buffer overrun HOT 2
- HAL_ADC_Start_DMA() misleading param description HOT 2
- ADC External Trigger Conversion Sources Incorrect for Category 1 Devices HOT 2
- Missing parenthesis in LL_MPU_ConfigRegion HOT 2
- Missing LIN break detection callback in UART HAL driver HOT 3
- The macro __HAL_FLASH_CLEAR_FLAG does not work properly HOT 1
- HAL_RCC_GetSysClockFreq() uses 64 bit arithmetic when 32 would suffice HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stm32l0xx_hal_driver.