1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

cpu/samd21: fix vectors definition

Some SAMD21 CPUs from the D series have an additional TCC3 and / or
an additional analog comperator.

Add those to `vectors.c`.

Also rename the i2s interrupt to the proper name used by other sam0
devices.
This commit is contained in:
Benjamin Valentin 2020-10-02 20:37:58 +02:00
parent 5f2cd55e3c
commit 3aa46b6f58

View File

@ -48,6 +48,7 @@ WEAK_DEFAULT void isr_sercom5(void);
WEAK_DEFAULT void isr_tcc0(void);
WEAK_DEFAULT void isr_tcc1(void);
WEAK_DEFAULT void isr_tcc2(void);
WEAK_DEFAULT void isr_tcc3(void);
WEAK_DEFAULT void isr_tc3(void);
WEAK_DEFAULT void isr_tc4(void);
WEAK_DEFAULT void isr_tc5(void);
@ -55,9 +56,10 @@ WEAK_DEFAULT void isr_tc6(void);
WEAK_DEFAULT void isr_tc7(void);
WEAK_DEFAULT void isr_adc(void);
WEAK_DEFAULT void isr_ac(void);
WEAK_DEFAULT void isr_ac1(void);
WEAK_DEFAULT void isr_dac(void);
WEAK_DEFAULT void isr_ptc(void);
WEAK_DEFAULT void isr_i2c(void);
WEAK_DEFAULT void isr_i2s(void);
/* CPU specific interrupt vector table */
ISR_VECTOR(1) const isr_t vector_cpu[CPU_IRQ_NUMOF] = {
@ -93,6 +95,12 @@ ISR_VECTOR(1) const isr_t vector_cpu[CPU_IRQ_NUMOF] = {
isr_dac, /* 25 Digital Analog Converter */
isr_ptc, /* 26 Peripheral Touch Controller */
#ifdef REV_I2S
isr_i2c /* 27 Inter-IC Sound Interface */
isr_i2s, /* 27 Inter-IC Sound Interface */
#endif
#if CPU_IRQ_NUMOF > 27
isr_ac1, /* 28 Analog Comparators 1 */
#endif
#if CPU_IRQ_NUMOF > 28
isr_tcc3, /* 29 Timer Counter Control 3 */
#endif
};