summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-01-23 00:43:39 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-01-23 00:43:39 +0100
commit464ac9db09cc820186df9c4fe2c1f16177837a9f (patch)
tree392453a5314cf49bebc427bbcfdf605df64f6f91
parent74aadcb900f9a82b82bfe0a1e5dfb030a77253ea (diff)
Set PWRDWN bit to power up transceiver.
-rw-r--r--main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.cpp b/main.cpp
index 04fcae8..5128062 100644
--- a/main.cpp
+++ b/main.cpp
@@ -88,8 +88,8 @@ int main() {
// NZLSOHSK DSPD
// core configuration
- OTG_FS.reg.GCCFG = (1 << 19);
- // VBUSBSEN
+ OTG_FS.reg.GCCFG = (1 << 19) | (1 << 16);
+ // VBUSBSEN PWRDWN
while(1) {
led_green.toggle();