sydeney opened a new pull request, #15872: URL: https://github.com/apache/nuttx/pull/15872
This commit introduces support for complementary PWM mode on the Tiva C-Series microcontrollers. The feature allows configuring specific PWM generators to operate in complementary mode via Kconfig. ## Summary This change adds support for complementary PWM mode on Tiva C-Series microcontrollers in NuttX. The feature allows configuring individual PWM generators to operate in complementary mode via Kconfig options. The implementation preserves backward compatibility, ensuring that the default behavior remains unchanged. The complementary mode can be enabled for each generator separately using: - CONFIG_TIVA_PWM_COMPLEMENTARY_G0 - CONFIG_TIVA_PWM_COMPLEMENTARY_G1 - CONFIG_TIVA_PWM_COMPLEMENTARY_G2 - CONFIG_TIVA_PWM_COMPLEMENTARY_G3 The changes are contained within: + arch/arm/src/tiva/common/tiva_pwm.c ## Impact This change: - Adds new functionality (complementary PWM mode) without breaking existing behavior. - Introduces Kconfig options for enabling complementary mode on specific PWM generators. - Improves flexibility in PWM signal generation for Tiva MCUs. - Does not introduce any API-breaking changes or impact other drivers. ## Testing The implementation was tested on: - Target Board: TM4C1294 LaunchPad - Build Environment: Ubuntu 22.04, GCC 11.3.0, arm-none-eabi-gcc Configuration: Custom defconfig with: ``` CONFIG_TIVA_PWM=y CONFIG_TIVA_PWM_COMPLEMENTARY_G2=y ``` -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org