mirror of https://gerrit.osmocom.org/simtrace2
cstartup / USBD: Use correct Makefile conditionals for DFU
This commit is contained in:
parent
adbe72a5ba
commit
0af4948211
|
@ -1163,7 +1163,7 @@ void USBD_IrqHandler(void)
|
|||
|
||||
TRACE_INFO_WP("EoBRes ");
|
||||
|
||||
#if defined(BOARD_USB_DFU) && defined(dfu)
|
||||
#if defined(BOARD_USB_DFU) && defined(APPLICATION_dfu)
|
||||
if (g_dfu->past_manifest)
|
||||
USBDFU_SwitchToApp();
|
||||
#endif
|
||||
|
|
|
@ -124,7 +124,7 @@ IntFunc exception_table[] = {
|
|||
IrqHandlerNotUsed /* 35 not used */
|
||||
};
|
||||
|
||||
#if defined (BOARD_USB_DFU) && !defined(dfu)
|
||||
#if defined(BOARD_USB_DFU) && defined(APPLICATION_dfu)
|
||||
static void BootIntoApp(void)
|
||||
{
|
||||
unsigned int *pSrc;
|
||||
|
@ -151,7 +151,8 @@ void ResetException( void )
|
|||
/* Low level Initialize */
|
||||
LowLevelInit() ;
|
||||
|
||||
#if defined (BOARD_USB_DFU) && !defined(dfu)
|
||||
|
||||
#if defined(BOARD_USB_DFU) && defined(APPLICATION_dfu)
|
||||
if (*(unsigned long *)IRAM_ADDR != 0xDFDFDFDF)
|
||||
BootIntoApp();
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue