From 30d386132464aa2466f432ea1a8109359d1c43a3 Mon Sep 17 00:00:00 2001
From: Thibaut VIARD <aethaniel@sam-geek.org>
Date: Mon, 11 May 2015 20:32:09 +0200
Subject: [PATCH] Cleaning core interrupts handlers

---
 cores/arduino/startup.c | 28 +++-------------------------
 1 file changed, 3 insertions(+), 25 deletions(-)

diff --git a/cores/arduino/startup.c b/cores/arduino/startup.c
index ecec7cbd..1eda635b 100644
--- a/cores/arduino/startup.c
+++ b/cores/arduino/startup.c
@@ -35,42 +35,20 @@ void Dummy_Handler(void);
 
 /* Cortex-M0+ core handlers */
 #if defined DEBUG
-void NMI_Handler( void )
-{
-  while ( 1 )
-  {
-  }
-}
-
 void HardFault_Handler( void )
 {
   while ( 1 )
   {
   }
 }
-
-void SVC_Handler( void )
-{
-  while ( 1 )
-  {
-  }
-}
-
-void PendSV_Handler( void )
-{
-  while ( 1 )
-  {
-  }
-}
-
-void SysTick_Handler         ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
 #else
-void NMI_Handler             ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
 void HardFault_Handler       ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
+#endif //DEBUG
+
+void NMI_Handler             ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
 void SVC_Handler             ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
 void PendSV_Handler          ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
 void SysTick_Handler         ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
-#endif //DEBUG
 
 /* Peripherals handlers */
 void PM_Handler              ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
-- 
GitLab