[Cryptech-Commits] [sw/stm32] 02/05: Remove exception handlders that I probably shouldn't have defined in the first place.

git at cryptech.is git at cryptech.is
Sat Apr 29 19:55:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch no-rtos
in repository sw/stm32.

commit 4a69b83e6c28aebec5dc2733e0cc20407b5d56e7
Author: Paul Selkirk <paul at psgd.org>
AuthorDate: Sat Apr 29 15:43:59 2017 -0400

    Remove exception handlders that I probably shouldn't have defined in the first place.
---
 .../TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c           | 80 ++--------------------
 1 file changed, 5 insertions(+), 75 deletions(-)

diff --git a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c
index cbfff2d..8e5cc73 100644
--- a/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c
+++ b/libraries/mbed/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_CRYPTECH_ALPHA/stm32f4xx_it.c
@@ -44,20 +44,6 @@
 /*            Cortex-M4 Processor Exceptions Handlers                         */
 /******************************************************************************/
 
-/*
- * We define these to make debugging easier, because otherwise gdb reports
- * HardFault_Handler as WWDG_IRQHandler.
- */
-
-/**
- * @brief   This function handles NMI exception.
- * @param  None
- * @retval None
- */
-void NMI_Handler(void)
-{
-}
-
 /**
  * @brief  This function handles Hard Fault exception.
  * @param  None
@@ -65,6 +51,11 @@ void NMI_Handler(void)
  */
 void HardFault_Handler(void)
 {
+/*
+ * We define this to make debugging easier, because otherwise gdb reports
+ * HardFault_Handler as WWDG_IRQHandler.
+ */
+
 #ifdef HAL_GPIO_MODULE_ENABLED
     //HAL_GPIO_WritePin(LED_PORT, LED_RED, GPIO_PIN_SET);
     HAL_GPIO_WritePin(GPIOK, GPIO_PIN_7, GPIO_PIN_SET);
@@ -74,67 +65,6 @@ void HardFault_Handler(void)
 }
 
 /**
- * @brief  This function handles Memory Manage exception.
- * @param  None
- * @retval None
- */
-void MemManage_Handler(void)
-{
-    /* Go to infinite loop when Memory Manage exception occurs */
-    while (1) { ; }
-}
-
-/**
- * @brief  This function handles Bus Fault exception.
- * @param  None
- * @retval None
- */
-void BusFault_Handler(void)
-{
-    /* Go to infinite loop when Bus Fault exception occurs */
-    while (1) { ; }
-}
-
-/**
- * @brief  This function handles Usage Fault exception.
- * @param  None
- * @retval None
- */
-void UsageFault_Handler(void)
-{
-    /* Go to infinite loop when Usage Fault exception occurs */
-    while (1) { ; }
-}
-
-
-/**
- * @brief  This function handles SVCall exception.
- * @param  None
- * @retval None
- */
-void SVC_Handler(void)
-{
-}
-
-/**
- * @brief  This function handles Debug Monitor exception.
- * @param  None
- * @retval None
- */
-void DebugMon_Handler(void)
-{
-}
-
-/**
- * @brief  This function handles PendSVC exception.
- * @param  None
- * @retval None
- */
-void PendSV_Handler(void)
-{
-}
-
-/**
  * @brief  This function handles SysTick Handler.
  * @param  None
  * @retval None



More information about the Commits mailing list