From 89c7f8f5d9cd63fa38ba0b1d8f289b31ebb3d7d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Thu, 6 Oct 2016 20:31:52 +0200 Subject: [PATCH] Set the multiplexing of the LED pin properly. Mad props to @santiagogf89 for the fix! --- left/src/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/left/src/main.c b/left/src/main.c index 259afa1..569d093 100644 --- a/left/src/main.c +++ b/left/src/main.c @@ -1,5 +1,6 @@ #include "fsl_gpio.h" #include "clock_config.h" +#include "fsl_port.h" #define TEST_LED_GPIO GPIOA #define TEST_LED_PORT PORTA @@ -14,6 +15,7 @@ int main(void) { CLOCK_EnableClock(TEST_LED_CLOCK); + PORT_SetPinMux(TEST_LED_PORT, TEST_LED_PIN, kPORT_MuxAsGpio); TEST_LED_INIT(0); BOARD_BootClockRUN(); while (1)