Giter VIP home page Giter VIP logo

Comments (5)

RJMSTM avatar RJMSTM commented on July 19, 2024

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

image

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.

mosimasip avatar mosimasip commented on July 19, 2024

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.

RJMSTM avatar RJMSTM commented on July 19, 2024

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.

RJMSTM avatar RJMSTM commented on July 19, 2024

ST Internal Reference: 180731

from stm32l0xx_hal_driver.

RJMSTM avatar RJMSTM commented on July 19, 2024

Fixed in : 8698427

from stm32l0xx_hal_driver.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.