Hi Ed,
Run:
$ make menuconfig
And inside menuconfig type "/" (without quotes) to search for symbols.
You can type PWM, but there are many PWM features so it is better to
search for EXAMPLES_PWM
It will return:
Symbol: EXAMPLES_PWM [=n]
Type : tristate
Prompt: Pulse width modulation (PWM) example
Location:
-> Application Configuration
(1) -> Examples
Defined at /home/alan/nuttxspace/apps/examples/pwm/Kconfig:6
Depends on: PWM [=n]
Note this last line: "Depends on: PWM [=n]" it means that EXAMPLES_PWM
depends on PWM driver to show up in the menuconfig.
Enter inside Drivers -> Timers -> PWM to enable it.
Also you need to enable the PWM in your ARCH (i.e. STM32, ESP32, etc),
normally you will find it at:
System Type ---> YOUR_ARCH_NAME Peripheral Support ---> [*] TIMx or
TIMERx then return to System Type and configure this Timer as PWM.
BR,
Alan
On 7/17/23, Ed Sutter <[email protected]> wrote:
> Hi,
> Now I'm working on PWM.
> I see there is at-least one example under apps/examples; however, I noticed
> that it isn't part of menuconfig
> so before I try to force it, is there a reason why it isn't included as an
> example option in menuconfig?
> Thanks,
> Ed