Skip to content

Commit 30d3861

Browse files
aethanielcmaglie
authored andcommitted
Cleaning core interrupts handlers
1 parent b18634e commit 30d3861

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

cores/arduino/startup.c

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -35,42 +35,20 @@ void Dummy_Handler(void);
3535

3636
/* Cortex-M0+ core handlers */
3737
#if defined DEBUG
38-
void NMI_Handler( void )
39-
{
40-
while ( 1 )
41-
{
42-
}
43-
}
44-
4538
void HardFault_Handler( void )
4639
{
4740
while ( 1 )
4841
{
4942
}
5043
}
51-
52-
void SVC_Handler( void )
53-
{
54-
while ( 1 )
55-
{
56-
}
57-
}
58-
59-
void PendSV_Handler( void )
60-
{
61-
while ( 1 )
62-
{
63-
}
64-
}
65-
66-
void SysTick_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
6744
#else
68-
void NMI_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
6945
void HardFault_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
46+
#endif //DEBUG
47+
48+
void NMI_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
7049
void SVC_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
7150
void PendSV_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
7251
void SysTick_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
73-
#endif //DEBUG
7452

7553
/* Peripherals handlers */
7654
void PM_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));

0 commit comments

Comments
 (0)