Skip to content

Commit 07a8899

Browse files
committed
Support M4
1 parent 2fbab80 commit 07a8899

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ports/atmel-samd/tick.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,16 @@ void tick_init() {
6666
}
6767
// Bump up the systick interrupt.
6868
NVIC_SetPriority(SysTick_IRQn, 1);
69+
#ifdef SAMD21
6970
NVIC_SetPriority(USB_IRQn, 1);
71+
#endif
72+
73+
#ifdef SAMD51
74+
NVIC_SetPriority(USB_0_IRQn, 1);
75+
NVIC_SetPriority(USB_1_IRQn, 1);
76+
NVIC_SetPriority(USB_2_IRQn, 1);
77+
NVIC_SetPriority(USB_3_IRQn, 1);
78+
#endif
7079
}
7180

7281
void tick_delay(uint32_t us) {

0 commit comments

Comments
 (0)