diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |