From 4a69b83e6c28aebec5dc2733e0cc20407b5d56e7 Mon Sep 17 00:00:00 2001 From: Paul Selkirk Date: Sat, 29 Apr 2017 15:43:59 -0400 Subject: 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(-) (limited to 'libraries') 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); @@ -73,67 +64,6 @@ void HardFault_Handler(void) while (1) { ; } } -/** - * @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 -- cgit v1.2.3