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
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