mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-26 09:45:33 +03:00
Early initialize USBD to avoid USB detection issues; USB defines cleanup
This commit is contained in:
parent
5afb5b8e36
commit
dbbe3219be
47 changed files with 18 additions and 131 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue