From 6f2090ae7fca871512258623d2bbd5484716a706 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Sun, 26 Mar 2017 21:43:37 +0100 Subject: setup: default enable LED pin --- setup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup.c b/setup.c index cb83eb4..e024844 100644 --- a/setup.c +++ b/setup.c @@ -84,6 +84,9 @@ void setup(void) SET_BIT(SIM_SOPT2, SOPT2_PLLFLLSEL); SET_MASKED(SIM_SOPT2, SOPT2_CLKOUTSEL_M, 4 << SOPT2_CLKOUTSEL); + /* configure LED pin */ + PORTC_PCR(5) = 1 << PCR_MUX | BV(PCR_DSE); + GPIOC_PDDR = BV(5); usb_setup(); -- cgit v1.2.3-54-g00ecf