/*
 * MIT License 
 * 
 * Copyright (c) 2020 Kirill Kotyagin
 */

#include <stm32f1xx.h>
#include "system_clock.h"
#include "system_interrupts.h"
#include "status_led.h"
#include "device_config.h"
#include "usb.h"
#include "usb_cdc.h"


int main() {
    system_clock_init();
    system_interrupts_init();
    device_config_init();
    status_led_init();
    usb_init();
    while (1) {
        usb_poll();
        usb_cdc_poll();
    }
}
