[riot-commits] [RIOT-OS/RIOT] 58b7ed: drivers: add periph_qdec

Alexandre Abadie alexandre.abadie at inria.fr
Mon Feb 26 17:44:59 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/RIOT-OS/RIOT
  Commit: 58b7ed3fa920eca759f8bf81d82e48ef64e2f77f
      https://github.com/RIOT-OS/RIOT/commit/58b7ed3fa920eca759f8bf81d82e48ef64e2f77f
  Author: Gilles DOFFE <g.doffe at gmail.com>
  Date:   2018-02-23 (Fri, 23 Feb 2018)

  Changed paths:
    A drivers/include/periph/qdec.h

  Log Message:
  -----------
  drivers: add periph_qdec

QDEC interface enables access to CPU peripherals acquiring quadrature
signals.

Signed-off-by: Gilles DOFFE <g.doffe at gmail.com>


  Commit: 07158755ea99ec693ba6b93ddfafa18a354c49c9
      https://github.com/RIOT-OS/RIOT/commit/07158755ea99ec693ba6b93ddfafa18a354c49c9
  Author: Gilles DOFFE <g.doffe at gmail.com>
  Date:   2018-02-23 (Fri, 23 Feb 2018)

  Changed paths:
    M cpu/native/include/periph_conf.h
    A cpu/native/periph/qdec.c

  Log Message:
  -----------
  cpu/native: add qdec implementation

* Add support for the native encoder interface
* Native QDEC is there mostly for simulation
* Calling code will have to simulate QDEC increment/decrement

Signed-off-by: Gilles DOFFE <g.doffe at gmail.com>


  Commit: bee493ac711224c2f3eb0db212eaf1e4e85375cf
      https://github.com/RIOT-OS/RIOT/commit/bee493ac711224c2f3eb0db212eaf1e4e85375cf
  Author: Gilles DOFFE <g.doffe at gmail.com>
  Date:   2018-02-23 (Fri, 23 Feb 2018)

  Changed paths:
    M cpu/stm32_common/include/periph_cpu_common.h
    A cpu/stm32_common/periph/qdec.c

  Log Message:
  -----------
  cpu/stm32_common: add qdec implementation

* Add support for the STM32 encoder interface
* The STM32 only supports X2 and X4 modes.
* Enable interrupt handler on counter overflow
* Add simple test code for QDEC based on nucleo-f401 board

Signed-off-by: Gilles DOFFE <g.doffe at gmail.com>


  Commit: d5488d108e3afddb7c862d51c9171f5b87c2274d
      https://github.com/RIOT-OS/RIOT/commit/d5488d108e3afddb7c862d51c9171f5b87c2274d
  Author: Gilles DOFFE <g.doffe at gmail.com>
  Date:   2018-02-23 (Fri, 23 Feb 2018)

  Changed paths:
    M boards/native/Makefile.features

  Log Message:
  -----------
  boards/native: add qdec

Add periph_qdec to native native board features.

Signed-off-by: Gilles DOFFE <g.doffe at gmail.com>


  Commit: 6b2e9ff4266534ab34bdb6ceff876674d54fb1aa
      https://github.com/RIOT-OS/RIOT/commit/6b2e9ff4266534ab34bdb6ceff876674d54fb1aa
  Author: Gilles DOFFE <g.doffe at gmail.com>
  Date:   2018-02-24 (Sat, 24 Feb 2018)

  Changed paths:
    M boards/nucleo-f401/Makefile.features
    M boards/nucleo-f401/include/periph_conf.h

  Log Message:
  -----------
  boards/nucleo-f401: add qdec

Use TIM3 (PA6 and PA7 pins) and TIM4 (PB6 and PB7 pins) timers.

Signed-off-by: Gilles DOFFE <g.doffe at gmail.com>


  Commit: f15fbf13b36003c1c04e0c36b5c87fb051f1e558
      https://github.com/RIOT-OS/RIOT/commit/f15fbf13b36003c1c04e0c36b5c87fb051f1e558
  Author: Gilles DOFFE <g.doffe at gmail.com>
  Date:   2018-02-24 (Sat, 24 Feb 2018)

  Changed paths:
    A tests/periph_qdec/Makefile
    A tests/periph_qdec/README.md
    A tests/periph_qdec/main.c

  Log Message:
  -----------
  tests: add periph_qdec test

* Test all QDEC devices

Signed-off-by: Gilles DOFFE <g.doffe at gmail.com>


  Commit: 8d8cb71497fcbf5307eed78c7291d2c6b381c981
      https://github.com/RIOT-OS/RIOT/commit/8d8cb71497fcbf5307eed78c7291d2c6b381c981
  Author: Yannick Gicquel <ygicquel at gmail.com>
  Date:   2018-02-24 (Sat, 24 Feb 2018)

  Changed paths:
    M boards/nucleo-f446/Makefile.features
    M boards/nucleo-f446/include/periph_conf.h

  Log Message:
  -----------
  board/nucleo-f446: add qdec

TIM3 now use for QDEC instead of PWM,
TIM3 (PA6 & PA7 pins) and TIM4 (PB6 & PB7 pins) timers,

Signed-off-by: Yannick Gicquel <ygicquel at gmail.com>


  Commit: c450cdebebaa64719c4df204908948bb23b29388
      https://github.com/RIOT-OS/RIOT/commit/c450cdebebaa64719c4df204908948bb23b29388
  Author: Alexandre Abadie <alexandre.abadie at inria.fr>
  Date:   2018-02-26 (Mon, 26 Feb 2018)

  Changed paths:
    M boards/native/Makefile.features
    M boards/nucleo-f401/Makefile.features
    M boards/nucleo-f401/include/periph_conf.h
    M boards/nucleo-f446/Makefile.features
    M boards/nucleo-f446/include/periph_conf.h
    M cpu/native/include/periph_conf.h
    A cpu/native/periph/qdec.c
    M cpu/stm32_common/include/periph_cpu_common.h
    A cpu/stm32_common/periph/qdec.c
    A drivers/include/periph/qdec.h
    A tests/periph_qdec/Makefile
    A tests/periph_qdec/README.md
    A tests/periph_qdec/main.c

  Log Message:
  -----------
  Merge pull request #8482 from cogip/qdec

drivers: Initial import of low-level QDEC driver interface


Compare: https://github.com/RIOT-OS/RIOT/compare/a10a755548ce...c450cdebebaa


More information about the commits mailing list