mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +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 ");
|
||||
|
||||
#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
|
||||
|
||||
Reference in New Issue
Block a user