1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-17 05:12:57 +01:00

cpu/samd21: prepare for samd20

If a peripheral is not present on samd2x, the IRQ is used by
the next peripheral instead, there are no gaps.
This commit is contained in:
Benjamin Valentin 2020-10-26 20:33:16 +01:00
parent 9eb66954a6
commit 5f2cd55e3c

View File

@ -21,6 +21,7 @@
#include <stdint.h>
#include "vectors_cortexm.h"
#include "cpu.h"
/* define a local dummy handler as it needs to be in the same compilation unit
* as the alias definition */
@ -66,8 +67,12 @@ ISR_VECTOR(1) const isr_t vector_cpu[CPU_IRQ_NUMOF] = {
isr_rtc, /* 3 Real-Time Counter */
isr_eic, /* 4 External Interrupt Controller */
isr_nvmctrl, /* 5 Non-Volatile Memory Controller */
#ifdef REV_DMAC
isr_dmac, /* 6 Direct Memory Access Controller */
#endif
#ifdef REV_USB
isr_usb, /* 7 Universal Serial Bus */
#endif
isr_evsys, /* 8 Event System Interface */
isr_sercom0, /* 9 Serial Communication Interface 0 */
isr_sercom1, /* 10 Serial Communication Interface 1 */
@ -87,5 +92,7 @@ ISR_VECTOR(1) const isr_t vector_cpu[CPU_IRQ_NUMOF] = {
isr_ac, /* 24 Analog Comparators */
isr_dac, /* 25 Digital Analog Converter */
isr_ptc, /* 26 Peripheral Touch Controller */
#ifdef REV_I2S
isr_i2c /* 27 Inter-IC Sound Interface */
#endif
};