|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
#include "hal.h"
|
|
|
|
#include "usbcfg.h"
|
|
|
|
int main(void) {
|
|
halInit();
|
|
chSysInit();
|
|
|
|
usbDisconnectBus(&USBD1);
|
|
chThdSleepMilliseconds(1500);
|
|
usbStart(&USBD1, &usbcfg);
|
|
usbConnectBus(&USBD1);
|
|
|
|
while(true) {
|
|
chThdSleepMilliseconds(1000);
|
|
}
|
|
}
|