summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
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);