[riot-notifications] [RIOT-OS/RIOT] Add PWM config for use in SAUL (#7587)

Francisco Acosta notifications at github.com
Fri Sep 8 17:04:15 CEST 2017


I noticed that the PWM configuration was not available for SAUL.

This PR adds the support and also a config file for the samr21-xpro board. The latter is optional since there are no other SAUL config files (e.g. ADC) besides the onboard LED and button, but it was useful while testing. Thus, it might be removed.

The driver can take four parameters: channel (implicit), frequency, resolution and duty cycle.
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/7587

-- Commit Summary --

  * saul: add pwm driver
  * boards/samr21-xpro: add adc parameters for SAUL
  * phydat: add PWM data type

-- File Changes --

    M boards/samr21-xpro/Makefile.dep (1)
    A boards/samr21-xpro/include/pwm_params.h (70)
    M drivers/include/saul/periph.h (18)
    M drivers/saul/Makefile (3)
    A drivers/saul/pwm_saul.c (61)
    M makefiles/pseudomodules.inc.mk (1)
    M sys/auto_init/auto_init.c (4)
    A sys/auto_init/saul/auto_init_pwm.c (71)
    M sys/include/phydat.h (3)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/7587.patch
https://github.com/RIOT-OS/RIOT/pull/7587.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/7587
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20170908/8128b642/attachment.html>


More information about the notifications mailing list