Skip to content

Commit c2d4153

Browse files
authored
Proposal to improve WVariant part number define logic (#326)
* add ethernet interupt dummy handler * fix timer definitions for -N and -P SAMx5x parts
1 parent bd2a9cd commit c2d4153

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

cores/arduino/WVariant.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ typedef enum _ETCChannel
136136
TC7_CH1 = (12<<8)|(1),
137137
} ETCChannel ;
138138

139-
#elif defined(__SAMD51P19A__) || defined(__SAMD51P20A__)
139+
#elif defined(__SAME53N20A__) || defined(__SAME53N19A__) || defined(__SAME54P20A__) || defined(__SAME54P19A__) || defined(__SAME54N20A__) || defined(__SAME54N19A__) || defined(__SAMD51P20A__) || defined(__SAMD51P19A__) || defined(__SAMD51N20A__) || defined(__SAMD51N19A__) || defined(__SAME51N20A__) || defined(__SAME51N19A__)
140140

141141
typedef enum _ETCChannel
142142
{

cores/arduino/cortex_handlers.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ void USB_0_Handler ( void ) __attribute__ ((weak));
133133
void USB_1_Handler ( void ) __attribute__ ((weak));
134134
void USB_2_Handler ( void ) __attribute__ ((weak));
135135
void USB_3_Handler ( void ) __attribute__ ((weak));
136+
void GMAC_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
136137
void TCC0_0_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
137138
void TCC0_1_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
138139
void TCC0_2_Handler ( void ) __attribute__ ((weak, alias("Dummy_Handler")));
@@ -302,7 +303,7 @@ __attribute__ ((section(".isr_vector"))) const DeviceVectors exception_table =
302303
(void*) USB_1_Handler, /* 81 Universal Serial Bus IRQ 1 */
303304
(void*) USB_2_Handler, /* 82 Universal Serial Bus IRQ 2 */
304305
(void*) USB_3_Handler, /* 83 Universal Serial Bus IRQ 3 */
305-
(void*) (0UL),
306+
(void*) GMAC_Handler, /* 84 Ethernet MAC */
306307
(void*) TCC0_0_Handler, /* 85 Timer Counter Control 0 IRQ 0 */
307308
(void*) TCC0_1_Handler, /* 86 Timer Counter Control 0 IRQ 1 */
308309
(void*) TCC0_2_Handler, /* 87 Timer Counter Control 0 IRQ 2 */

0 commit comments

Comments
 (0)