summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2012-01-21 19:22:56 +0100
committerVegard Storheil Eriksen <zyp@jvnv.net>2012-01-21 19:22:56 +0100
commit5f22ed065513388486c909d23dd48a4fee3e76ee (patch)
tree6eed3703677d0fb3fa00b739b561654c5ae37423 /main.cpp
parent6a6342ac8b9919c116e10b5c4d315ecc88b1233f (diff)
Added USB register definitions.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp
index 3b43d9d..807c0b0 100644
--- a/main.cpp
+++ b/main.cpp
@@ -6,6 +6,8 @@
#include "pin.h"
+#include "usb.h"
+
static Pin& led_green = PD12;
static Pin& led_yellow = PD13;
static Pin& led_red = PD14;
@@ -25,6 +27,8 @@ int main() {
led_red.set_mode(Pin::Output);
led_blue.set_mode(Pin::Output);
+ RCC.enable(RCC.OTGFS);
+
while(1) {
led_green.on();
Time::sleep(100);