Fixed USB DFU mode on DEBUG builds (#285)
This commit is contained in:
@@ -203,12 +203,6 @@ void boardInit()
|
||||
RCC_APB1PeriphClockCmd(RCC_APB1_LIST, ENABLE);
|
||||
RCC_APB2PeriphClockCmd(RCC_APB2_LIST, ENABLE);
|
||||
|
||||
#if defined(DEBUG) && defined(AUX_SERIAL_GPIO)
|
||||
auxSerialInit(UART_MODE_DEBUG, 0); // default serial mode (None if DEBUG not defined)
|
||||
TRACE("\ni6X board started :)");
|
||||
// TRACE("RCC->CSR = %08x", RCC->CSR);
|
||||
#endif
|
||||
|
||||
pwrInit();
|
||||
keysInit();
|
||||
|
||||
@@ -216,6 +210,12 @@ void boardInit()
|
||||
SystemBootloaderJump();
|
||||
}
|
||||
|
||||
#if defined(DEBUG) && defined(AUX_SERIAL_GPIO)
|
||||
auxSerialInit(UART_MODE_DEBUG, 0); // default serial mode (None if DEBUG not defined)
|
||||
TRACE("\ni6X board started :)");
|
||||
// TRACE("RCC->CSR = %08x", RCC->CSR);
|
||||
#endif
|
||||
|
||||
crcInit();
|
||||
adcInit();
|
||||
delaysInit();
|
||||
|
||||
Reference in New Issue
Block a user