Skip to content
Snippets Groups Projects
Commit f13207b7 authored by Vincent Dupont's avatar Vincent Dupont Committed by GitHub
Browse files

Merge pull request #7679 from haukepetersen/opt_stm32f0_isrvectors

cpu/stm32f0: optimized isr vector definitions
parents b7b451da 5d3084bb
No related branches found
No related tags found
No related merge requests found
/* /*
* Copyright (C) 2014-2015 Freie Universität Berlin * Copyright (C) 2014-2017 Freie Universität Berlin
* *
* This file is subject to the terms and conditions of the GNU Lesser General * This file is subject to the terms and conditions of the GNU Lesser General
* Public License v2.1. See the file LICENSE in the top level directory for more * Public License v2.1. See the file LICENSE in the top level directory for more
...@@ -18,12 +18,8 @@ ...@@ -18,12 +18,8 @@
* @} * @}
*/ */
#include <stdint.h>
#include "vectors_cortexm.h" #include "vectors_cortexm.h"
/* get the start of the ISR stack as defined in the linkerscript */
extern uint32_t _estack;
/* define a local dummy handler as it needs to be in the same compilation unit /* define a local dummy handler as it needs to be in the same compilation unit
* as the alias definition */ * as the alias definition */
void dummy_handler(void) { void dummy_handler(void) {
...@@ -31,225 +27,182 @@ void dummy_handler(void) { ...@@ -31,225 +27,182 @@ void dummy_handler(void) {
} }
/* STM32F0 specific interrupt vectors */ /* STM32F0 specific interrupt vectors */
WEAK_DEFAULT void isr_wwdg(void); WEAK_DEFAULT void isr_adc1(void);
WEAK_DEFAULT void isr_pvd(void); WEAK_DEFAULT void isr_adc1_comp(void);
WEAK_DEFAULT void isr_rtc(void); WEAK_DEFAULT void isr_cec_can(void);
WEAK_DEFAULT void isr_dma1_ch1(void);
WEAK_DEFAULT void isr_dma1_ch2_3_dma2_ch1_2(void);
WEAK_DEFAULT void isr_dma1_ch4_7_dma2_ch3_5(void);
WEAK_DEFAULT void isr_dma1_channel1(void);
WEAK_DEFAULT void isr_dma1_channel2_3(void);
WEAK_DEFAULT void isr_dma1_channel4_5(void);
WEAK_DEFAULT void isr_dma1_channel4_5_6_7(void);
WEAK_DEFAULT void isr_exti(void);
WEAK_DEFAULT void isr_flash(void); WEAK_DEFAULT void isr_flash(void);
WEAK_DEFAULT void isr_i2c1(void);
WEAK_DEFAULT void isr_i2c2(void);
WEAK_DEFAULT void isr_pvd(void);
WEAK_DEFAULT void isr_pvd_vddio2(void);
WEAK_DEFAULT void isr_rcc(void); WEAK_DEFAULT void isr_rcc(void);
WEAK_DEFAULT void isr_exti(void); WEAK_DEFAULT void isr_rcc_crs(void);
WEAK_DEFAULT void isr_ts(void); WEAK_DEFAULT void isr_rtc(void);
WEAK_DEFAULT void isr_dma1_ch1(void); WEAK_DEFAULT void isr_spi1(void);
WEAK_DEFAULT void isr_dma1_ch2_3(void); WEAK_DEFAULT void isr_spi2(void);
WEAK_DEFAULT void isr_dma1_ch4_5(void); WEAK_DEFAULT void isr_tim14(void);
WEAK_DEFAULT void isr_adc1_comp(void); WEAK_DEFAULT void isr_tim15(void);
WEAK_DEFAULT void isr_tim16(void);
WEAK_DEFAULT void isr_tim17(void);
WEAK_DEFAULT void isr_tim1_brk_up_trg_com(void); WEAK_DEFAULT void isr_tim1_brk_up_trg_com(void);
WEAK_DEFAULT void isr_tim1_cc(void); WEAK_DEFAULT void isr_tim1_cc(void);
WEAK_DEFAULT void isr_tim2(void); WEAK_DEFAULT void isr_tim2(void);
WEAK_DEFAULT void isr_tim3(void); WEAK_DEFAULT void isr_tim3(void);
WEAK_DEFAULT void isr_tim6(void);
WEAK_DEFAULT void isr_tim6_dac(void); WEAK_DEFAULT void isr_tim6_dac(void);
WEAK_DEFAULT void isr_tim7(void); WEAK_DEFAULT void isr_tim7(void);
WEAK_DEFAULT void isr_tim14(void); WEAK_DEFAULT void isr_tsc(void);
WEAK_DEFAULT void isr_tim15(void);
WEAK_DEFAULT void isr_tim16(void);
WEAK_DEFAULT void isr_tim17(void);
WEAK_DEFAULT void isr_i2c1(void);
WEAK_DEFAULT void isr_i2c2(void);
WEAK_DEFAULT void isr_spi1(void);
WEAK_DEFAULT void isr_spi2(void);
WEAK_DEFAULT void isr_usart1(void); WEAK_DEFAULT void isr_usart1(void);
WEAK_DEFAULT void isr_usart2(void); WEAK_DEFAULT void isr_usart2(void);
WEAK_DEFAULT void isr_usart3_4(void);
WEAK_DEFAULT void isr_usart3_8(void); WEAK_DEFAULT void isr_usart3_8(void);
WEAK_DEFAULT void isr_cec(void);
WEAK_DEFAULT void isr_usb(void); WEAK_DEFAULT void isr_usb(void);
WEAK_DEFAULT void isr_wwdg(void);
/* CPU specific interrupt vector table */ /* CPU specific interrupt vector table */
ISR_VECTOR(1) const isr_t vector_cpu[CPU_IRQ_NUMOF] = { ISR_VECTOR(1) const isr_t vector_cpu[CPU_IRQ_NUMOF] = {
isr_wwdg, /* [0] windowed watchdog */ /* shared vectors for all family members */
[ 0] = isr_wwdg, /* [ 0] Window WatchDog Interrupt */
[ 2] = isr_rtc, /* [ 2] RTC Interrupt through EXTI Lines 17, 19 and 20 */
[ 3] = isr_flash, /* [ 3] FLASH global Interrupt */
[14] = isr_tim1_cc, /* [14] TIM1 Capture Compare Interrupt */
[16] = isr_tim3, /* [16] TIM3 global Interrupt */
[19] = isr_tim14, /* [19] TIM14 global Interrupt */
[21] = isr_tim16, /* [21] TIM16 global Interrupt */
[22] = isr_tim17, /* [22] TIM17 global Interrupt */
[25] = isr_spi1, /* [25] SPI1 global Interrupt */
#if defined(CPU_MODEL_STM32F030R8) #if defined(CPU_MODEL_STM32F030R8)
(0UL), /* [1] reserved */ [ 4] = isr_rcc, /* [ 4] RCC global Interrupt */
isr_rtc, /* [2] real time clock */ [ 5] = isr_exti, /* [ 5] EXTI Line 0 and 1 Interrupt */
isr_flash, /* [3] flash memory controller */ [ 6] = isr_exti, /* [ 6] EXTI Line 2 and 3 Interrupt */
isr_rcc, /* [4] reset and clock control */ [ 7] = isr_exti, /* [ 7] EXTI Line 4 to 15 Interrupt */
isr_exti, /* [5] external interrupt lines 0 and 1 */ [ 9] = isr_dma1_channel1, /* [ 9] DMA1 Channel 1 Interrupt */
isr_exti, /* [6] external interrupt lines 2 and 3 */ [10] = isr_dma1_channel2_3, /* [10] DMA1 Channel 2 and Channel 3 Interrupt */
isr_exti, /* [7] external interrupt lines 4 to 15 */ [11] = isr_dma1_channel4_5, /* [11] DMA1 Channel 4 and Channel 5 Interrupt */
(0UL), /* [8] reserved */ [12] = isr_adc1, /* [12] ADC1 Interrupt */
isr_dma1_ch1, /* [9] direct memory access controller 1, channel 1*/ [13] = isr_tim1_brk_up_trg_com, /* [13] TIM1 Break, Update, Trigger and Commutation Interrupt */
isr_dma1_ch2_3, /* [10] direct memory access controller 1, channel 2 and 3*/ [17] = isr_tim6, /* [17] TIM6 global Interrupt */
isr_dma1_ch4_5, /* [11] direct memory access controller 1, channel 4 and 5*/ [20] = isr_tim15, /* [20] TIM15 global Interrupt */
isr_adc1_comp, /* [12] analog digital converter */ [23] = isr_i2c1, /* [23] I2C1 Event Interrupt */
isr_tim1_brk_up_trg_com, /* [13] timer 1 break, update, trigger and communication */ [24] = isr_i2c2, /* [24] I2C2 Event Interrupt */
isr_tim1_cc, /* [14] timer 1 capture compare */ [26] = isr_spi2, /* [26] SPI2 global Interrupt */
isr_tim2, /* [15] timer 2 */ [27] = isr_usart1, /* [27] USART1 global Interrupt */
isr_tim3, /* [16] timer 3 */ [28] = isr_usart2, /* [28] USART2 global Interrupt */
isr_tim6_dac, /* [17] timer 6 and digital to analog converter */
(0UL), /* [18] reserved */
isr_tim14, /* [19] timer 14 */
isr_tim15, /* [20] timer 15 */
isr_tim16, /* [21] timer 16 */
isr_tim17, /* [22] timer 17 */
isr_i2c1, /* [23] I2C 1 */
isr_i2c2, /* [24] I2C 2 */
isr_spi1, /* [25] SPI 1 */
isr_spi2, /* [26] SPI 2 */
isr_usart1, /* [27] USART 1 */
isr_usart2 /* [28] USART 2 */
#elif defined(CPU_MODEL_STM32F031K6) #elif defined(CPU_MODEL_STM32F031K6)
isr_pvd, /* [1] power control */ [ 1] = isr_pvd, /* [ 1] PVD Interrupt through EXTI Lines 16 */
isr_rtc, /* [2] real time clock */ [ 4] = isr_rcc, /* [ 4] RCC global Interrupt */
isr_flash, /* [3] flash memory controller */ [ 5] = isr_exti, /* [ 5] EXTI Line 0 and 1 Interrupt */
isr_rcc, /* [4] reset and clock control */ [ 6] = isr_exti, /* [ 6] EXTI Line 2 and 3 Interrupt */
isr_exti, /* [5] external interrupt lines 0 and 1 */ [ 7] = isr_exti, /* [ 7] EXTI Line 4 to 15 Interrupt */
isr_exti, /* [6] external interrupt lines 2 and 3 */ [ 9] = isr_dma1_channel1, /* [ 9] DMA1 Channel 1 Interrupt */
isr_exti, /* [7] external interrupt lines 4 to 15 */ [10] = isr_dma1_channel2_3, /* [10] DMA1 Channel 2 and Channel 3 Interrupt */
(0UL), /* [8] reserved */ [11] = isr_dma1_channel4_5, /* [11] DMA1 Channel 4 and Channel 5 Interrupt */
isr_dma1_ch1, /* [9] direct memory access controller 1, channel 1*/ [12] = isr_adc1, /* [12] ADC1 Interrupt */
isr_dma1_ch2_3, /* [10] direct memory access controller 1, channel 2 and 3*/ [13] = isr_tim1_brk_up_trg_com, /* [13] TIM1 Break, Update, Trigger and Commutation Interrupt */
isr_dma1_ch4_5, /* [11] direct memory access controller 1, channel 4 and 5*/ [15] = isr_tim2, /* [15] TIM2 global Interrupt */
isr_adc1_comp, /* [12] analog digital converter */
isr_tim1_brk_up_trg_com, /* [13] timer 1 break, update, trigger and communication */
isr_tim1_cc, /* [14] timer 1 capture compare */
isr_tim2, /* [15] timer 2 */
isr_tim3, /* [16] timer 3 */
(0UL), /* [17] reserved */
(0UL), /* [18] reserved */
isr_tim14, /* [19] timer 14 */
(0UL), /* [20] reserved */
isr_tim16, /* [21] timer 16 */
isr_tim17, /* [22] timer 17 */
isr_i2c1, /* [23] I2C 1 */
(0UL), /* [24] reserved */
isr_spi1, /* [25] SPI 1 */
(0UL), /* [26] reserved */
isr_usart1 /* [27] USART 1 */
#elif defined(CPU_MODEL_STM32F042K6) #elif defined(CPU_MODEL_STM32F042K6)
isr_pvd, /* [1] power control */ [ 1] = isr_pvd_vddio2, /* [ 1] PVD & VDDIO2 Interrupts through EXTI Lines 16 and 31 */
isr_rtc, /* [2] real time clock */ [ 4] = isr_rcc_crs, /* [ 4] RCC & CRS Global Interrupts */
isr_flash, /* [3] flash memory controller */ [ 5] = isr_exti, /* [ 5] EXTI Line 0 and 1 Interrupts */
isr_rcc, /* [4] reset and clock control */ [ 6] = isr_exti, /* [ 6] EXTI Line 2 and 3 Interrupts */
isr_exti, /* [5] external interrupt lines 0 and 1 */ [ 7] = isr_exti, /* [ 7] EXTI Line 4 to 15 Interrupts */
isr_exti, /* [6] external interrupt lines 2 and 3 */ [ 8] = isr_tsc, /* [ 8] Touch Sensing Controller Interrupts */
isr_exti, /* [7] external interrupt lines 4 to 15 */ [ 9] = isr_dma1_channel1, /* [ 9] DMA1 Channel 1 Interrupt */
isr_ts, /* [8] touch sensing input*/ [10] = isr_dma1_channel2_3, /* [10] DMA1 Channel 2 and Channel 3 Interrupts */
isr_dma1_ch1, /* [9] direct memory access controller 1, channel 1*/ [11] = isr_dma1_channel4_5, /* [11] DMA1 Channel 4 and Channel 5 Interrupts */
isr_dma1_ch2_3, /* [10] direct memory access controller 1, channel 2 and 3*/ [12] = isr_adc1, /* [12] ADC1 Interrupt */
isr_dma1_ch4_5, /* [11] direct memory access controller 1, channel 4 and 5*/ [13] = isr_tim1_brk_up_trg_com, /* [13] TIM1 Break, Update, Trigger and Commutation Interrupts */
isr_adc1_comp, /* [12] analog digital converter */ [15] = isr_tim2, /* [15] TIM2 global Interrupt */
isr_tim1_brk_up_trg_com, /* [13] timer 1 break, update, trigger and communication */ [26] = isr_spi2, /* [26] SPI2 global Interrupt */
isr_tim1_cc, /* [14] timer 1 capture compare */ [28] = isr_usart2, /* [28] USART2 global Interrupt */
isr_tim2, /* [15] timer 2 */ [30] = isr_cec_can, /* [30] CEC and CAN global Interrupts & EXTI Line27 Interrupt */
isr_tim3, /* [16] timer 3 */ [31] = isr_usb, /* [31] USB global Interrupts & EXTI Line18 Interrupt */
(0UL), /* [17] reserved */
(0UL), /* [18] reserved */
isr_tim14, /* [19] timer 14 */
(0UL), /* [20] reserved */
isr_tim16, /* [21] timer 16 */
isr_tim17, /* [22] timer 17 */
isr_i2c1, /* [23] I2C 1 */
(0UL), /* [24] reserved */
isr_spi1, /* [25] SPI 1 */
isr_spi2, /* [26] SPI 2 */
isr_usart1, /* [27] USART 1 */
isr_usart2, /* [28] USART 2 */
(0UL), /* [29] reserved */
isr_cec, /* [30] consumer electronics control */
isr_usb /* [31] USB global Interrupts & EXTI Line18 Interrup */
#elif defined(CPU_MODEL_STM32F051R8) #elif defined(CPU_MODEL_STM32F051R8)
isr_pvd, /* [1] power control */ [ 1] = isr_pvd, /* [ 1] PVD Interrupt through EXTI Lines 16 */
isr_rtc, /* [2] real time clock */ [ 4] = isr_rcc, /* [ 4] RCC global Interrupt */
isr_flash, /* [3] flash memory controller */ [ 5] = isr_exti, /* [ 5] EXTI Line 0 and 1 Interrupts */
isr_rcc, /* [4] reset and clock control */ [ 6] = isr_exti, /* [ 6] EXTI Line 2 and 3 Interrupts */
isr_exti, /* [5] external interrupt lines 0 and 1 */ [ 7] = isr_exti, /* [ 7] EXTI Line 4 to 15 Interrupts */
isr_exti, /* [6] external interrupt lines 2 and 3 */ [ 8] = isr_tsc, /* [ 8] Touch Sensing Controller Interrupts */
isr_exti, /* [7] external interrupt lines 4 to 15 */ [ 9] = isr_dma1_channel1, /* [ 9] DMA1 Channel 1 Interrupt */
isr_ts, /* [8] touch sensing input*/ [10] = isr_dma1_channel2_3, /* [10] DMA1 Channel 2 and Channel 3 Interrupts */
isr_dma1_ch1, /* [9] direct memory access controller 1, channel 1*/ [11] = isr_dma1_channel4_5, /* [11] DMA1 Channel 4 and Channel 5 Interrupts */
isr_dma1_ch2_3, /* [10] direct memory access controller 1, channel 2 and 3*/ [12] = isr_adc1_comp, /* [12] ADC1 and COMP interrupts (ADC interrupt combined with EXTI Lines 21 and 22 */
isr_dma1_ch4_5, /* [11] direct memory access controller 1, channel 4 and 5*/ [13] = isr_tim1_brk_up_trg_com, /* [13] TIM1 Break, Update, Trigger and Commutation Interrupts */
isr_adc1_comp, /* [12] analog digital converter */ [15] = isr_tim2, /* [15] TIM2 global Interrupt */
isr_tim1_brk_up_trg_com, /* [13] timer 1 break, update, trigger and communication */ [17] = isr_tim6_dac, /* [17] TIM6 global and DAC channel underrun error Interrupts */
isr_tim1_cc, /* [14] timer 1 capture compare */ [20] = isr_tim15, /* [20] TIM15 global Interrupt */
isr_tim2, /* [15] timer 2 */ [24] = isr_i2c2, /* [24] I2C2 Event Interrupt */
isr_tim3, /* [16] timer 3 */ [26] = isr_spi2, /* [26] SPI2 global Interrupt */
isr_tim6_dac, /* [17] timer 6 and digital to analog converter */ [28] = isr_usart2, /* [28] USART2 global Interrupt */
(0UL), /* [18] reserved */ [30] = isr_cec_can, /* [30] CEC and CAN global Interrupts & EXTI Line27 Interrupt */
isr_tim14, /* [19] timer 14 */
isr_tim15, /* [20] timer 15 */
isr_tim16, /* [21] timer 16 */
isr_tim17, /* [22] timer 17 */
isr_i2c1, /* [23] I2C 1 */
isr_i2c2, /* [24] I2C 2 */
isr_spi1, /* [25] SPI 1 */
isr_spi2, /* [26] SPI 2 */
isr_usart1, /* [27] USART 1 */
isr_usart2, /* [28] USART 2 */
(0UL), /* [29] reserved */
isr_cec, /* [30] consumer electronics control */
#elif defined(CPU_MODEL_STM32F070RB) #elif defined(CPU_MODEL_STM32F070RB)
(0UL), /* [1] reserved */ [ 4] = isr_rcc, /* [ 4] RCC global Interrupt */
isr_rtc, /* [2] real time clock */ [ 5] = isr_exti, /* [ 5] EXTI Line 0 and 1 Interrupt */
isr_flash, /* [3] flash memory controller */ [ 6] = isr_exti, /* [ 6] EXTI Line 2 and 3 Interrupt */
isr_rcc, /* [4] reset and clock control */ [ 7] = isr_exti, /* [ 7] EXTI Line 4 to 15 Interrupt */
isr_exti, /* [5] external interrupt lines 0 and 1 */ [ 9] = isr_dma1_channel1, /* [ 9] DMA1 Channel 1 Interrupt */
isr_exti, /* [6] external interrupt lines 2 and 3 */ [10] = isr_dma1_channel2_3, /* [10] DMA1 Channel 2 and Channel 3 Interrupt */
isr_exti, /* [7] external interrupt lines 4 to 15 */ [11] = isr_dma1_channel4_5, /* [11] DMA1 Channel 4 and Channel 5 Interrupt */
isr_ts, /* [8] touch sensing input*/ [12] = isr_adc1, /* [12] ADC1 Interrupt */
isr_dma1_ch1, /* [9] direct memory access controller 1, channel 1*/ [13] = isr_tim1_brk_up_trg_com, /* [13] TIM1 Break, Update, Trigger and Commutation Interrupt */
isr_dma1_ch2_3, /* [10] direct memory access controller 1, channel 2 and 3*/ [17] = isr_tim6, /* [17] TIM6 global Interrupt */
isr_dma1_ch4_5, /* [11] direct memory access controller 1, channel 4 and 5*/ [18] = isr_tim7, /* [18] TIM7 global Interrupt */
isr_adc1_comp, /* [12] analog digital converter */ [20] = isr_tim15, /* [20] TIM15 global Interrupt */
isr_tim1_brk_up_trg_com, /* [13] timer 1 break, update, trigger and communication */ [24] = isr_i2c2, /* [24] I2C2 Event Interrupt */
isr_tim1_cc, /* [14] timer 1 capture compare */ [26] = isr_spi2, /* [26] SPI2 global Interrupt */
(0UL), /* [15] reserved */ [27] = isr_usart1, /* [27] USART1 global Interrupt */
isr_tim3, /* [16] timer 3 */ [28] = isr_usart2, /* [28] USART2 global Interrupt */
isr_tim6_dac, /* [17] timer 6 and digital to analog converter */ [29] = isr_usart3_4, /* [29] USART3 and USART4 global Interrupt */
isr_tim7, /* [18] timer 7 */ [31] = isr_usb, /* [31] USB global Interrupt & EXTI Line18 Interrupt */
isr_tim14, /* [19] timer 14 */ #elif defined(CPU_MODEL_STM32F072RB)
isr_tim15, /* [20] timer 15 */ [ 1] = isr_pvd_vddio2, /* [ 1] PVD & VDDIO2 Interrupt through EXTI Lines 16 and 31 */
isr_tim16, /* [21] timer 16 */ [ 4] = isr_rcc_crs, /* [ 4] RCC & CRS global Interrupt */
isr_tim17, /* [22] timer 17 */ [ 5] = isr_exti, /* [ 5] EXTI Line 0 and 1 Interrupt */
isr_i2c1, /* [23] I2C 1 */ [ 6] = isr_exti, /* [ 6] EXTI Line 2 and 3 Interrupt */
isr_i2c2, /* [24] I2C 2 */ [ 7] = isr_exti, /* [ 7] EXTI Line 4 to 15 Interrupt */
isr_spi1, /* [25] SPI 1 */ [ 8] = isr_tsc, /* [ 8] Touch Sensing Controller Interrupts */
isr_spi2, /* [26] SPI 2 */ [ 9] = isr_dma1_channel1, /* [ 9] DMA1 Channel 1 Interrupt */
isr_usart1, /* [27] USART 1 */ [10] = isr_dma1_channel2_3, /* [10] DMA1 Channel 2 and Channel 3 Interrupt */
isr_usart2, /* [28] USART 2 */ [11] = isr_dma1_channel4_5_6_7, /* [11] DMA1 Channel 4 to Channel 7 Interrupt */
isr_usart3_8, /* [29] USART 3 to 8 */ [12] = isr_adc1_comp, /* [12] ADC1 and COMP interrupts (ADC interrupt combined with EXTI Lines 21 and 22 */
(0UL), /* [30] reserved */ [13] = isr_tim1_brk_up_trg_com, /* [13] TIM1 Break, Update, Trigger and Commutation Interrupt */
isr_usb /* [31] USB global Interrupts & EXTI Line18 Interrup */ [15] = isr_tim2, /* [15] TIM2 global Interrupt */
#else /* CPU_MODEL_STM32_F072RB, CPU_MODEL_STM32F091RC*/ [17] = isr_tim6_dac, /* [17] TIM6 global and DAC channel underrun error Interrupt */
isr_pvd, /* [1] power control */ [18] = isr_tim7, /* [18] TIM7 global Interrupt */
isr_rtc, /* [2] real time clock */ [20] = isr_tim15, /* [20] TIM15 global Interrupt */
isr_flash, /* [3] flash memory controller */ [24] = isr_i2c2, /* [24] I2C2 Event Interrupt */
isr_rcc, /* [4] reset and clock control */ [26] = isr_spi2, /* [26] SPI2 global Interrupt */
isr_exti, /* [5] external interrupt lines 0 and 1 */ [29] = isr_usart3_4, /* [29] USART3 and USART4 global Interrupt */
isr_exti, /* [6] external interrupt lines 2 and 3 */ [30] = isr_cec_can, /* [30] CEC and CAN global Interrupts & EXTI Line27 Interrupt */
isr_exti, /* [7] external interrupt lines 4 to 15 */ [31] = isr_usb, /* [31] USB global Interrupt & EXTI Line18 Interrupt */
isr_ts, /* [8] touch sensing input*/ #elif defined(CPU_MODEL_STM32F091RC)
isr_dma1_ch1, /* [9] direct memory access controller 1, channel 1*/ [ 1] = isr_pvd_vddio2, /* [ 1] PVD & VDDIO2 Interrupts through EXTI Lines 16 and 31 */
isr_dma1_ch2_3, /* [10] direct memory access controller 1, channel 2 and 3*/ [ 4] = isr_rcc_crs, /* [ 4] RCC & CRS global Interrupts */
isr_dma1_ch4_5, /* [11] direct memory access controller 1, channel 4 and 5*/ [ 5] = isr_exti, /* [ 5] EXTI Line 0 and 1 Interrupts */
isr_adc1_comp, /* [12] analog digital converter */ [ 6] = isr_exti, /* [ 6] EXTI Line 2 and 3 Interrupts */
isr_tim1_brk_up_trg_com, /* [13] timer 1 break, update, trigger and communication */ [ 7] = isr_exti, /* [ 7] EXTI Line 4 to 15 Interrupts */
isr_tim1_cc, /* [14] timer 1 capture compare */ [ 8] = isr_tsc, /* [ 8] Touch Sensing Controller Interrupts */
isr_tim2, /* [15] timer 2 */ [ 9] = isr_dma1_ch1, /* [ 9] DMA1 Channel 1 Interrupt */
isr_tim3, /* [16] timer 3 */ [10] = isr_dma1_ch2_3_dma2_ch1_2,/* [10] DMA1 Channel 2 and 3 & DMA2 Channel 1 and 2 Interrupts */
isr_tim6_dac, /* [17] timer 6 and digital to analog converter */ [11] = isr_dma1_ch4_7_dma2_ch3_5,/* [11] DMA1 Channel 4 to 7 & DMA2 Channel 3 to 5 Interrupts */
isr_tim7, /* [18] timer 7 */ [13] = isr_tim1_brk_up_trg_com, /* [13] TIM1 Break, Update, Trigger and Commutation Interrupts */
isr_tim14, /* [19] timer 14 */ [15] = isr_tim2, /* [15] TIM2 global Interrupt */
isr_tim15, /* [20] timer 15 */ [17] = isr_tim6_dac, /* [17] TIM6 global and DAC channel underrun error Interrupts */
isr_tim16, /* [21] timer 16 */ [18] = isr_tim7, /* [18] TIM7 global Interrupt */
isr_tim17, /* [22] timer 17 */ [20] = isr_tim15, /* [20] TIM15 global Interrupt */
isr_i2c1, /* [23] I2C 1 */ [24] = isr_i2c2, /* [24] I2C2 Event Interrupt */
isr_i2c2, /* [24] I2C 2 */ [26] = isr_spi2, /* [26] SPI2 global Interrupt */
isr_spi1, /* [25] SPI 1 */ [29] = isr_usart3_8, /* [29] USART3 to USART8 global Interrupts */
isr_spi2, /* [26] SPI 2 */ [30] = isr_cec_can, /* [30] CEC and CAN global Interrupts & EXTI Line27 Interrupt */
isr_usart1, /* [27] USART 1 */
isr_usart2, /* [28] USART 2 */
isr_usart3_8, /* [29] USART 3 to 8 */
isr_cec, /* [30] consumer electronics control */
#if defined(CPU_MODEL_STM32F072RB)
isr_usb /* [31] USB global Interrupts & EXTI Line18 Interrup */
#endif
#endif #endif
}; };
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment