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