Set the multiplexing of the LED pin properly. Mad props to @santiagogf89 for the fix!

This commit is contained in:
László Monda
2016-10-06 20:31:52 +02:00
parent dd7b38b38f
commit 89c7f8f5d9

View File

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