fdcavalcanti commented on code in PR #12843:
URL: https://github.com/apache/nuttx/pull/12843#discussion_r1704380507
##########
Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst:
##########
@@ -154,6 +154,18 @@ You can scan for all I2C devices using the following
command::
nsh> i2c dev 0x00 0x7f
+motor
+-------
+
+The motor configuration enables the MCPWM peripheral with support to brushed
DC motor
+control.
+
+It creates a ``/dev/motor0`` device with speed and direction control
capabilities
+by using two GPIOs (GPIO21 and GPIO22) for PWM output. PWM frequency is
configurable
+from 25 Hz to 3 kHz, however it defaults to 1 kHz.
+There is also support for an optional fault GPIO (defaults to GPIO9), which
can be used
+for quick motor braking. All GPIOs are configurable in ``menuconfig``.
+
Review Comment:
I'll submit the motor example on nuttx-apps and than update this docs.
##########
Documentation/platforms/risc-v/esp32c6/boards/esp32c6-devkitc/index.rst:
##########
@@ -154,6 +154,18 @@ You can scan for all I2C devices using the following
command::
nsh> i2c dev 0x00 0x7f
+motor
+-------
+
+The motor configuration enables the MCPWM peripheral with support to brushed
DC motor
+control.
+
+It creates a ``/dev/motor0`` device with speed and direction control
capabilities
+by using two GPIOs (GPIO21 and GPIO22) for PWM output. PWM frequency is
configurable
+from 25 Hz to 3 kHz, however it defaults to 1 kHz.
+There is also support for an optional fault GPIO (defaults to GPIO9), which
can be used
+for quick motor braking. All GPIOs are configurable in ``menuconfig``.
+
Review Comment:
I'll submit the motor example on nuttx-apps and then update this docs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]