Skip to content
Snippets Groups Projects
  1. Aug 14, 2016
  2. Aug 13, 2016
  3. Aug 12, 2016
  4. Aug 11, 2016
    • Tobias Badertscher's avatar
      stmhal/adc.c: Get ADC working on STM32L4 MCUs. · af9889f9
      Tobias Badertscher authored
      Fixing Issue #2243. Main problems were:
      
      - HAL_ADC_GetState(adcHandle) may return other bits set (not only
        HAL_ADC_STATE_EOC_REG) when called - so I AND-ed it out as proposed by
        mattbrejza in Issue #2243.
      - ADC Pin has to be configured as GPIO_MODE_ANALOG_ADC_CONTROL not only
        GPIO_MODE_ANALOG.
      - Resolved ADC resolution L4 specific (Use L4 define ADC_RESOLUTION_12B).
      - Changed setting of Init.EOCSelection toADC_EOC_SINGLE_CONV for L4.
      - Added call to ADC_MultiModeTypeDef as this is done on a STM32Cube
        generated project too.
      - Clean up: Configuration of ADC is done only in ONE function not the same
        is done in two functions.
      
      Test is done on PA5 pin of STM32L4Discovery-Kit which is connected to the
      DOWN button.
      
      Thanks to mattbrejza for discovering the bug.
      af9889f9
    • Damien George's avatar
      stmhal/boards: Update STM32L476 pin defs to include ADC channels. · dfb81440
      Damien George authored
      This patch introduces proper ADC Pin definitions in stm32l476_af.csv.
      Originally provided by @tobbad.
      dfb81440
  5. Aug 10, 2016
  6. Aug 09, 2016
  7. Aug 08, 2016
  8. Aug 07, 2016
  9. Aug 06, 2016
Loading