1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-26 09:45:33 +03:00

Merge pull request #2732 from iNavFlight/de_vcp_fixes

Early initialize USBD to avoid USB detection issues; USB defines cleanup
This commit is contained in:
Konstantin Sharlaimov 2018-02-12 21:45:41 +10:00 committed by GitHub
commit 0b8b19d097
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 18 additions and 131 deletions

View file

@ -65,6 +65,7 @@
#include "drivers/serial.h"
#include "drivers/serial_softserial.h"
#include "drivers/serial_uart.h"
#include "drivers/serial_usb_vcp.h"
#include "drivers/sound_beeper.h"
#include "drivers/system.h"
#include "drivers/time.h"
@ -241,6 +242,11 @@ void init(void)
}
#endif
#ifdef USE_VCP
// Early initialize USB hardware
usbVcpInitHardware();
#endif
delay(500);
timerInit(); // timer must be initialized before any channel is allocated