Skip to content
Permalink
Browse files

boards: mimxrt1064: Add PWM support

PWM on GPIO_AD_B0_09 (USER_LED/Arduino J22 pin 5)

Signed-off-by: Loic Poulain <loic.poulain@linaro.org>
  • Loading branch information...
Loic Poulain authored and MaureenHelm committed Jun 21, 2019
1 parent 447029d commit 2e1bed513a6ac1f566561d637686927aed486d03
@@ -78,4 +78,11 @@ endchoice

endif # LVGL

if PWM_MCUX

config FLEXPWM2_PWM3
default y

endif

endif # BOARD_MIMXRT1064_EVK
@@ -19,5 +19,6 @@ supported:
- hwinfo
- netif:eth
- i2c
- pwm
- usb_device
- counter
@@ -169,6 +169,10 @@ static int mimxrt1064_evk_init(struct device *dev)
GPIO_WritePinOutput(GPIO1, 9, 0);
#endif

#ifdef CONFIG_FLEXPWM2_PWM3
IOMUXC_SetPinMux(IOMUXC_GPIO_AD_B0_09_FLEXPWM2_PWMA03, 0);
#endif

return 0;
}

0 comments on commit 2e1bed5

Please sign in to comment.
You can’t perform that action at this time.