Re: [PATCH v4 1/2] commands: add pwm manipulation command

2023-06-06 Thread Sascha Hauer
Hi Marc, I applied this with some small changes. On Fri, Jun 02, 2023 at 02:53:05PM +1000, Marc Reilly wrote: > +static int do_pwm_cmd(int argc, char *argv[]) > +{ > + struct pwm_device *pwm = NULL; > + struct pwm_state state, orig_state; > + int error = 0; > + char *devname = NUL

[PATCH v4 1/2] commands: add pwm manipulation command

2023-06-01 Thread Marc Reilly
This introduces a command to set parameters for a pwm device. Signed-off-by: Marc Reilly --- commands/Kconfig | 12 +++ commands/Makefile | 1 + commands/pwm.c| 199 ++ 3 files changed, 212 insertions(+) create mode 100644 commands/pwm.c diff