From 5f22ed065513388486c909d23dd48a4fee3e76ee Mon Sep 17 00:00:00 2001 From: Vegard Storheil Eriksen Date: Sat, 21 Jan 2012 19:22:56 +0100 Subject: Added USB register definitions. --- main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.cpp') 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); -- cgit v1.2.3