summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Kramkowski <tk@the-tk.com>2017-03-26 21:43:37 +0100
committerTomasz Kramkowski <tk@the-tk.com>2017-03-26 21:43:37 +0100
commit6f2090ae7fca871512258623d2bbd5484716a706 (patch)
treed67ffc0831ea6dd1b979077af7bb8d8da595b227
parent002346b0dea934150a108c67bb4cb1d542b5ebbe (diff)
downloadfmk-6f2090ae7fca871512258623d2bbd5484716a706.tar.gz
fmk-6f2090ae7fca871512258623d2bbd5484716a706.tar.xz
fmk-6f2090ae7fca871512258623d2bbd5484716a706.zip
setup: default enable LED pin
-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();