blob: 789c23b8d5b7593f963e0b138056092f6d07b2f1 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*
2 * Copyright (c) 2012 Travis Geiselbrecht
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining
5 * a copy of this software and associated documentation files
6 * (the "Software"), to deal in the Software without restriction,
7 * including without limitation the rights to use, copy, modify, merge,
8 * publish, distribute, sublicense, and/or sell copies of the Software,
9 * and to permit persons to whom the Software is furnished to do so,
10 * subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be
13 * included in all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 */
23#include <debug.h>
24#include <compiler.h>
25#include <sam3x8h.h>
26
27extern void sam3_uart_irq(void);
28extern void sam3_tc0_irq(void);
29
30/* appended to the end of the main vector table */
31const void * const __SECTION(".text.boot.vectab2") vectab2[] = {
32 [UART_IRQn] = sam3_uart_irq,
33 [TC0_IRQn] = sam3_tc0_irq,
34#if 0
35 [TIM2_IRQn] = stm32_tim2_irq,
36 [TIM3_IRQn] = stm32_tim3_irq,
37 [TIM4_IRQn] = stm32_tim4_irq,
38 [TIM5_IRQn] = stm32_tim5_irq,
39 [TIM6_IRQn] = stm32_tim6_irq,
40 [TIM7_IRQn] = stm32_tim7_irq,
41
42 [USART1_IRQn] = stm32_USART1_IRQ,
43 [USART2_IRQn] = stm32_USART2_IRQ,
44 [USART3_IRQn] = stm32_USART3_IRQ,
45#endif
46 [NUM_IRQn] = 0,
47};
48