summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--setup.c3
1 files changed, 3 insertions, 0 deletions
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();