diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2017-03-26 21:43:37 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2017-03-26 21:43:37 +0100 |
commit | 6f2090ae7fca871512258623d2bbd5484716a706 (patch) | |
tree | d67ffc0831ea6dd1b979077af7bb8d8da595b227 | |
parent | 002346b0dea934150a108c67bb4cb1d542b5ebbe (diff) | |
download | fmk-6f2090ae7fca871512258623d2bbd5484716a706.tar.gz fmk-6f2090ae7fca871512258623d2bbd5484716a706.tar.xz fmk-6f2090ae7fca871512258623d2bbd5484716a706.zip |
setup: default enable LED pin
-rw-r--r-- | setup.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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(); |