Skip to content

Commit da80034

Browse files
committed
Add CAN handlers for SAM E51
1 parent 3471cdf commit da80034

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cores/arduino/cortex_handlers.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ void SERCOM7_0_Handler ( void ) __attribute__ ((weak, alias("Dummy_Han
127127
void SERCOM7_1_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
128128
void SERCOM7_2_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
129129
void SERCOM7_3_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
130+
void CAN0_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
131+
void CAN1_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
130132
void USB_0_Handler ( void ) __attribute__ ((weak));
131133
void USB_1_Handler ( void ) __attribute__ ((weak));
132134
void USB_2_Handler ( void ) __attribute__ ((weak));
@@ -294,8 +296,8 @@ __attribute__ ((section(".isr_vector"))) const DeviceVectors exception_table =
294296
(void*) SERCOM7_1_Handler, /* 75 Serial Communication Interface 7 IRQ 1 */
295297
(void*) SERCOM7_2_Handler, /* 76 Serial Communication Interface 7 IRQ 2 */
296298
(void*) SERCOM7_3_Handler, /* 77 Serial Communication Interface 7 IRQ 3 */
297-
(void*) (0UL),
298-
(void*) (0UL),
299+
(void*) CAN0_Handler, /* 78 Control Area Network 0 (SAM E5x) */
300+
(void*) CAN1_Handler, /* 79 Control Area Network 0 (SAM E5x) */
299301
(void*) USB_0_Handler, /* 80 Universal Serial Bus IRQ 0 */
300302
(void*) USB_1_Handler, /* 81 Universal Serial Bus IRQ 1 */
301303
(void*) USB_2_Handler, /* 82 Universal Serial Bus IRQ 2 */

0 commit comments

Comments
 (0)