[riot-notifications] [RIOT-OS/RIOT] cpu/sam0_common: move PWM to common code, add support for saml21, samd5x (#14007)

benpicco notifications at github.com
Sun May 3 18:25:29 CEST 2020


@benpicco commented on this pull request.



> @@ -148,6 +148,35 @@ static const uart_conf_t uart_config[] = {
 #define UART_NUMOF          ARRAY_SIZE(uart_config)
 /** @} */
 
+/**
+ * @name PWM configuration
+ * @{
+ */
+#define PWM_0_EN            1
+
+#if PWM_0_EN
+/* PWM0 channels */
+static const pwm_conf_chan_t pwm_chan0_config[] = {
+    /* GPIO pin, MUX value, TCC channel */
+    { GPIO_PIN(PC, 18), GPIO_MUX_F, 2 },

It's the on-board LED - so you can get immediate feedback with the `osci` command.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/14007#discussion_r419126327
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20200503/18e2e245/attachment-0001.htm>


More information about the notifications mailing list