From 3346609215ef7c3afaf2eb78a2a669c4c14ad555 Mon Sep 17 00:00:00 2001 From: aleph Date: Mon, 20 Sep 2010 16:58:53 +0000 Subject: [PATCH] SAM3 port: add interrupt definitions git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4247 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/cortex-m3/io/sam3_ints.h | 78 +++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 bertos/cpu/cortex-m3/io/sam3_ints.h diff --git a/bertos/cpu/cortex-m3/io/sam3_ints.h b/bertos/cpu/cortex-m3/io/sam3_ints.h new file mode 100644 index 00000000..422ff511 --- /dev/null +++ b/bertos/cpu/cortex-m3/io/sam3_ints.h @@ -0,0 +1,78 @@ +/** + * \file + * + * + * \brief AT91SAM3 interrupt definitions. + */ + +#ifndef SAM3_INTS_H +#define SAM3_INTS_H + +/** + * Defines for the interrupt assignments. + */ +/*\{*/ +#define INT_SUPC 0 ///< Supply Controller (SUPC) +#define INT_RSTC 1 ///< Reset Controller (RSTC) +#define INT_RTC 2 ///< Real Time Clock (RTC) +#define INT_RTT 3 ///< Real Time Timer (RTT) +#define INT_WDT 4 ///< Watchdog Timer (WDT) +#define INT_PMC 5 ///< Power Management Controller (PMC) +#define INT_EFC 6 ///< Enhanced Flash Controller (EFC) +#define INT_UART0 8 ///< UART 0 (UART0) +#define INT_UART1 9 ///< UART 1 (UART1) +#define INT_PIOA 11 ///< Parallel I/O Controller A (PIOA) +#define INT_PIOB 12 ///< Parallel I/O Controller B (PIOB) +#define INT_PIOC 13 ///< Parallel I/O Controller C (PIOC) +#define INT_USART0 14 ///< USART 0 (USART0) +#define INT_USART1 15 ///< USART 1 (USART1) +#define INT_TWI0 19 ///< Two Wire Interface 0 (TWI0) +#define INT_TWI1 20 ///< Two Wire Interface 1 (TWI1) +#define INT_SPI 21 ///< Serial Peripheral Interface (SPI) +#define INT_TC0 23 ///< Timer/Counter 0 (TC0) +#define INT_TC1 24 ///< Timer/Counter 1 (TC1) +#define INT_TC2 25 ///< Timer/Counter 2 (TC2) +#define INT_TC3 26 ///< Timer/Counter 3 (TC3) +#define INT_TC4 27 ///< Timer/Counter 4 (TC4) +#define INT_TC5 28 ///< Timer/Counter 5 (TC5) +#define INT_ADC 29 ///< Analog To Digital Converter (ADC) +#define INT_DACC 30 ///< Digital To Analog Converter (DACC) +#define INT_PWM 31 ///< Pulse Width Modulation (PWM) +/*\}*/ + +/** + * Total number of interrupts. + */ +/*\{*/ +#define NUM_INTERRUPTS 32 +/*\}*/ + +#endif /* SAM3_INTS_H */ -- 2.25.1