From 6ea139a17a553070aadf294f66ec682fab27a3a0 Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Tue, 28 Feb 2023 11:44:19 +0000 Subject: [PATCH] Refs #1723. Removed duplicate BackDoorXxxHook functions. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@1030 5dc33758-31d5-4daf-9ae8-b24bf3d40d73 --- .../Boot/App/hooks.c | 28 ------------------- .../Boot/hooks.c | 28 ------------------- .../Boot/hooks.c | 28 ------------------- .../Boot/hooks.c | 28 ------------------- .../Boot/App/hooks.c | 28 ------------------- .../Boot/hooks.c | 28 ------------------- .../Boot/hooks.c | 28 ------------------- .../Boot/hooks.c | 28 ------------------- 8 files changed, 224 deletions(-) diff --git a/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_CubeIDE/Boot/App/hooks.c b/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_CubeIDE/Boot/App/hooks.c index 81f099ca..87d311c7 100644 --- a/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_CubeIDE/Boot/App/hooks.c +++ b/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_CubeIDE/Boot/App/hooks.c @@ -183,34 +183,6 @@ void UsbLeaveLowPowerModeHook(void) #endif /* BOOT_COM_USB_ENABLE > 0 */ -/**************************************************************************************** -* B A C K D O O R E N T R Y H O O K F U N C T I O N S -****************************************************************************************/ - -#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0) -/************************************************************************************//** -** \brief Initializes the backdoor entry option. -** \return none. -** -****************************************************************************************/ -void BackDoorInitHook(void) -{ -} /*** end of BackDoorInitHook ***/ - - -/************************************************************************************//** -** \brief Checks if a backdoor entry is requested. -** \return BLT_TRUE if the backdoor entry is requested, BLT_FALSE otherwise. -** -****************************************************************************************/ -blt_bool BackDoorEntryHook(void) -{ - /* default implementation always activates the bootloader after a reset */ - return BLT_TRUE; -} /*** end of BackDoorEntryHook ***/ -#endif /* BOOT_BACKDOOR_HOOKS_ENABLE > 0 */ - - /**************************************************************************************** * N O N - V O L A T I L E M E M O R Y D R I V E R H O O K F U N C T I O N S ****************************************************************************************/ diff --git a/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_GCC/Boot/hooks.c b/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_GCC/Boot/hooks.c index f705aaef..91308685 100644 --- a/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_GCC/Boot/hooks.c @@ -183,34 +183,6 @@ void UsbLeaveLowPowerModeHook(void) #endif /* BOOT_COM_USB_ENABLE > 0 */ -/**************************************************************************************** -* B A C K D O O R E N T R Y H O O K F U N C T I O N S -****************************************************************************************/ - -#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0) -/************************************************************************************//** -** \brief Initializes the backdoor entry option. -** \return none. -** -****************************************************************************************/ -void BackDoorInitHook(void) -{ -} /*** end of BackDoorInitHook ***/ - - -/************************************************************************************//** -** \brief Checks if a backdoor entry is requested. -** \return BLT_TRUE if the backdoor entry is requested, BLT_FALSE otherwise. -** -****************************************************************************************/ -blt_bool BackDoorEntryHook(void) -{ - /* default implementation always activates the bootloader after a reset */ - return BLT_TRUE; -} /*** end of BackDoorEntryHook ***/ -#endif /* BOOT_BACKDOOR_HOOKS_ENABLE > 0 */ - - /**************************************************************************************** * N O N - V O L A T I L E M E M O R Y D R I V E R H O O K F U N C T I O N S ****************************************************************************************/ diff --git a/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_IAR/Boot/hooks.c b/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_IAR/Boot/hooks.c index a1a7a0fd..eaf58b73 100644 --- a/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_IAR/Boot/hooks.c @@ -183,34 +183,6 @@ void UsbLeaveLowPowerModeHook(void) #endif /* BOOT_COM_USB_ENABLE > 0 */ -/**************************************************************************************** -* B A C K D O O R E N T R Y H O O K F U N C T I O N S -****************************************************************************************/ - -#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0) -/************************************************************************************//** -** \brief Initializes the backdoor entry option. -** \return none. -** -****************************************************************************************/ -void BackDoorInitHook(void) -{ -} /*** end of BackDoorInitHook ***/ - - -/************************************************************************************//** -** \brief Checks if a backdoor entry is requested. -** \return BLT_TRUE if the backdoor entry is requested, BLT_FALSE otherwise. -** -****************************************************************************************/ -blt_bool BackDoorEntryHook(void) -{ - /* default implementation always activates the bootloader after a reset */ - return BLT_TRUE; -} /*** end of BackDoorEntryHook ***/ -#endif /* BOOT_BACKDOOR_HOOKS_ENABLE > 0 */ - - /**************************************************************************************** * N O N - V O L A T I L E M E M O R Y D R I V E R H O O K F U N C T I O N S ****************************************************************************************/ diff --git a/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_Keil/Boot/hooks.c b/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_Keil/Boot/hooks.c index b68d4915..afacd3cb 100644 --- a/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_Keil/Boot/hooks.c +++ b/Target/Demo/ARMCM33_STM32L5_Nucleo_L552ZE_Keil/Boot/hooks.c @@ -183,34 +183,6 @@ void UsbLeaveLowPowerModeHook(void) #endif /* BOOT_COM_USB_ENABLE > 0 */ -/**************************************************************************************** -* B A C K D O O R E N T R Y H O O K F U N C T I O N S -****************************************************************************************/ - -#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0) -/************************************************************************************//** -** \brief Initializes the backdoor entry option. -** \return none. -** -****************************************************************************************/ -void BackDoorInitHook(void) -{ -} /*** end of BackDoorInitHook ***/ - - -/************************************************************************************//** -** \brief Checks if a backdoor entry is requested. -** \return BLT_TRUE if the backdoor entry is requested, BLT_FALSE otherwise. -** -****************************************************************************************/ -blt_bool BackDoorEntryHook(void) -{ - /* default implementation always activates the bootloader after a reset */ - return BLT_TRUE; -} /*** end of BackDoorEntryHook ***/ -#endif /* BOOT_BACKDOOR_HOOKS_ENABLE > 0 */ - - /**************************************************************************************** * N O N - V O L A T I L E M E M O R Y D R I V E R H O O K F U N C T I O N S ****************************************************************************************/ diff --git a/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_CubeIDE/Boot/App/hooks.c b/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_CubeIDE/Boot/App/hooks.c index c868df05..22242b8f 100644 --- a/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_CubeIDE/Boot/App/hooks.c +++ b/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_CubeIDE/Boot/App/hooks.c @@ -184,34 +184,6 @@ void UsbLeaveLowPowerModeHook(void) #endif /* BOOT_COM_USB_ENABLE > 0 */ -/**************************************************************************************** -* B A C K D O O R E N T R Y H O O K F U N C T I O N S -****************************************************************************************/ - -#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0) -/************************************************************************************//** -** \brief Initializes the backdoor entry option. -** \return none. -** -****************************************************************************************/ -void BackDoorInitHook(void) -{ -} /*** end of BackDoorInitHook ***/ - - -/************************************************************************************//** -** \brief Checks if a backdoor entry is requested. -** \return BLT_TRUE if the backdoor entry is requested, BLT_FALSE otherwise. -** -****************************************************************************************/ -blt_bool BackDoorEntryHook(void) -{ - /* default implementation always activates the bootloader after a reset */ - return BLT_TRUE; -} /*** end of BackDoorEntryHook ***/ -#endif /* BOOT_BACKDOOR_HOOKS_ENABLE > 0 */ - - /**************************************************************************************** * N O N - V O L A T I L E M E M O R Y D R I V E R H O O K F U N C T I O N S ****************************************************************************************/ diff --git a/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_GCC/Boot/hooks.c b/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_GCC/Boot/hooks.c index 525c49e9..45922aa4 100644 --- a/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_GCC/Boot/hooks.c @@ -184,34 +184,6 @@ void UsbLeaveLowPowerModeHook(void) #endif /* BOOT_COM_USB_ENABLE > 0 */ -/**************************************************************************************** -* B A C K D O O R E N T R Y H O O K F U N C T I O N S -****************************************************************************************/ - -#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0) -/************************************************************************************//** -** \brief Initializes the backdoor entry option. -** \return none. -** -****************************************************************************************/ -void BackDoorInitHook(void) -{ -} /*** end of BackDoorInitHook ***/ - - -/************************************************************************************//** -** \brief Checks if a backdoor entry is requested. -** \return BLT_TRUE if the backdoor entry is requested, BLT_FALSE otherwise. -** -****************************************************************************************/ -blt_bool BackDoorEntryHook(void) -{ - /* default implementation always activates the bootloader after a reset */ - return BLT_TRUE; -} /*** end of BackDoorEntryHook ***/ -#endif /* BOOT_BACKDOOR_HOOKS_ENABLE > 0 */ - - /**************************************************************************************** * N O N - V O L A T I L E M E M O R Y D R I V E R H O O K F U N C T I O N S ****************************************************************************************/ diff --git a/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_IAR/Boot/hooks.c b/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_IAR/Boot/hooks.c index 2f007a5b..29d759a3 100644 --- a/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_IAR/Boot/hooks.c @@ -184,34 +184,6 @@ void UsbLeaveLowPowerModeHook(void) #endif /* BOOT_COM_USB_ENABLE > 0 */ -/**************************************************************************************** -* B A C K D O O R E N T R Y H O O K F U N C T I O N S -****************************************************************************************/ - -#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0) -/************************************************************************************//** -** \brief Initializes the backdoor entry option. -** \return none. -** -****************************************************************************************/ -void BackDoorInitHook(void) -{ -} /*** end of BackDoorInitHook ***/ - - -/************************************************************************************//** -** \brief Checks if a backdoor entry is requested. -** \return BLT_TRUE if the backdoor entry is requested, BLT_FALSE otherwise. -** -****************************************************************************************/ -blt_bool BackDoorEntryHook(void) -{ - /* default implementation always activates the bootloader after a reset */ - return BLT_TRUE; -} /*** end of BackDoorEntryHook ***/ -#endif /* BOOT_BACKDOOR_HOOKS_ENABLE > 0 */ - - /**************************************************************************************** * N O N - V O L A T I L E M E M O R Y D R I V E R H O O K F U N C T I O N S ****************************************************************************************/ diff --git a/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_Keil/Boot/hooks.c b/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_Keil/Boot/hooks.c index 2a04bc51..bb309a65 100644 --- a/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_Keil/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32L4_Nucleo_L496ZG_Keil/Boot/hooks.c @@ -184,34 +184,6 @@ void UsbLeaveLowPowerModeHook(void) #endif /* BOOT_COM_USB_ENABLE > 0 */ -/**************************************************************************************** -* B A C K D O O R E N T R Y H O O K F U N C T I O N S -****************************************************************************************/ - -#if (BOOT_BACKDOOR_HOOKS_ENABLE > 0) -/************************************************************************************//** -** \brief Initializes the backdoor entry option. -** \return none. -** -****************************************************************************************/ -void BackDoorInitHook(void) -{ -} /*** end of BackDoorInitHook ***/ - - -/************************************************************************************//** -** \brief Checks if a backdoor entry is requested. -** \return BLT_TRUE if the backdoor entry is requested, BLT_FALSE otherwise. -** -****************************************************************************************/ -blt_bool BackDoorEntryHook(void) -{ - /* default implementation always activates the bootloader after a reset */ - return BLT_TRUE; -} /*** end of BackDoorEntryHook ***/ -#endif /* BOOT_BACKDOOR_HOOKS_ENABLE > 0 */ - - /**************************************************************************************** * N O N - V O L A T I L E M E M O R Y D R I V E R H O O K F U N C T I O N S ****************************************************************************************/