Browse Source

samples: add Wio Terminal overlay to blinky pwm

Add overlay to the blinky pwm sample to run the application on the
Wio Terminal. The USER LED on PA15 is used to setup the PWM LED.

Signed-off-by: Joel Guittet <joelguittet@gmail.com>
pull/67636/head
Joel Guittet 2 years ago committed by Anas Nashif
parent
commit
93b6a06bd1
  1. 36
      samples/basic/blinky_pwm/boards/wio_terminal.overlay

36
samples/basic/blinky_pwm/boards/wio_terminal.overlay

@ -0,0 +1,36 @@ @@ -0,0 +1,36 @@
/*
* Copyright (c) 2024 Joel Guittet
* SPDX-License-Identifier: Apache-2.0
*/
/{
aliases {
pwm-led0 = &pwm_led0;
};
pwmleds {
compatible = "pwm-leds";
pwm_led0: pwm_led_0 {
pwms = <&tcc1 3 PWM_MSEC(500)>;
label = "Blue PWM LED";
};
};
};
&tcc1 {
status = "okay";
compatible = "atmel,sam0-tcc-pwm";
prescaler = <4>;
#pwm-cells = <2>;
pinctrl-0 = <&pwm_default>;
pinctrl-names = "default";
};
&pinctrl {
pwm_default: pwm_default {
group1 {
pinmux = <PA15G_TCC1_WO3>;
};
};
};
Loading…
Cancel
Save