jerryscript-project / iotjs

Platform for Internet of Things with JavaScript http://www.iotjs.net
Other
2.6k stars 438 forks source link

nuttx: Register PWM device only if device file is not present #1886

Closed rzr closed 5 years ago

rzr commented 5 years ago

If configured from menuconfig, device inode is already there there is no need to register it again.

It was observed on STM32F7 using a config with those options:

CONFIG_STM32F7_TIM1=y
CONFIG_STM32F7_TIM1_PWM=y

Relate-to: https://github.com/rzr/webthing-iotjs/issues/3 Forwarded: https://github.com/pando-project/iotjs/pull/ Change-Id: I6134f15ead43babe3e5de6a9f0d185f6629f62d2 IoT.js-DCO-1.0-Signed-off-by: Philippe Coval p.coval@samsung.com