@@ -47,86 +47,7 @@ int main(void);
4747// Arduino: we must setup hardware before doing this
4848// void __libc_init_array(void);
4949
50- /* Default empty handler */
51- void Dummy_Handler (void );
52-
53- /* Cortex-M3 core handlers */
54- void NMI_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
55- void HardFault_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
56- void MemManage_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
57- void BusFault_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
58- void UsageFault_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
59- void SVC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
60- void DebugMon_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
61- void PendSV_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
62- void SysTick_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
63-
64- /* Peripherals handlers */
65- void SUPC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
66- void RSTC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
67- void RTC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
68- void RTT_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
69- void WDT_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
70- void PMC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
71- void EFC0_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
72- void EFC1_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
73- void UART_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
74- #ifdef _SAM3XA_SMC_INSTANCE_
75- void SMC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
76- #endif /* _SAM3XA_SMC_INSTANCE_ */
77- #ifdef _SAM3XA_SDRAMC_INSTANCE_
78- void SDRAMC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
79- #endif /* _SAM3XA_SDRAMC_INSTANCE_ */
80- void PIOA_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
81- void PIOB_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
82- #ifdef _SAM3XA_PIOC_INSTANCE_
83- void PIOC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
84- #endif /* _SAM3XA_PIOC_INSTANCE_ */
85- #ifdef _SAM3XA_PIOD_INSTANCE_
86- void PIOD_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
87- #endif /* _SAM3XA_PIOD_INSTANCE_ */
88- #ifdef _SAM3XA_PIOE_INSTANCE_
89- void PIOE_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
90- #endif /* _SAM3XA_PIOE_INSTANCE_ */
91- #ifdef _SAM3XA_PIOF_INSTANCE_
92- void PIOF_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
93- #endif /* _SAM3XA_PIOF_INSTANCE_ */
94- void USART0_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
95- void USART1_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
96- void USART2_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
97- #ifdef _SAM3XA_USART3_INSTANCE_
98- void USART3_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
99- #endif /* _SAM3XA_USART3_INSTANCE_ */
100- void HSMCI_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
101- void TWI0_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
102- void TWI1_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
103- void SPI0_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
104- #ifdef _SAM3XA_SPI1_INSTANCE_
105- void SPI1_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
106- #endif /* _SAM3XA_SPI1_INSTANCE_ */
107- void SSC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
108- void TC0_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
109- void TC1_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
110- void TC2_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
111- void TC3_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
112- void TC4_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
113- void TC5_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
114- #ifdef _SAM3XA_TC2_INSTANCE_
115- void TC6_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
116- void TC7_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
117- void TC8_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
118- #endif /* _SAM3XA_TC2_INSTANCE_ */
119- void PWM_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
120- void ADC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
121- void DACC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
122- void DMAC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
123- void UOTGHS_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
124- void TRNG_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
125- #ifdef _SAM3XA_EMAC_INSTANCE_
126- void EMAC_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
127- #endif /* _SAM3XA_EMAC_INSTANCE_ */
128- void CAN0_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
129- void CAN1_Handler ( void ) __attribute__ ((weak , alias ("Dummy_Handler" )));
50+ // Arduino: handlers weak symbols moved into main
13051
13152/* Exception Table */
13253__attribute__ ((section (".vectors" )))
@@ -283,13 +204,3 @@ void Reset_Handler(void)
283204 /* Infinite loop */
284205 while (1 );
285206}
286-
287- /**
288- * \brief Default interrupt handler for unused IRQs.
289- */
290- void Dummy_Handler (void )
291- {
292- while (1 ) {
293- }
294- }
295-
0 commit comments