SimpleLib_03272011
Embed:
(wiki syntax)
Show/hide line numbers
interrupts.h
00001 /* 00002 * Copyright or � or Copr. 2010, Thomas SOETE 00003 * 00004 * Author e-mail: thomas@soete.org 00005 * Library website : http://mbed.org/users/Alkorin/libraries/SimpleLib/ 00006 * 00007 * This software is governed by the CeCILL license under French law and 00008 * abiding by the rules of distribution of free software. You can use, 00009 * modify and/ or redistribute the software under the terms of the CeCILL 00010 * license as circulated by CEA, CNRS and INRIA at the following URL 00011 * "http://www.cecill.info". 00012 * 00013 * As a counterpart to the access to the source code and rights to copy, 00014 * modify and redistribute granted by the license, users are provided only 00015 * with a limited warranty and the software's author, the holder of the 00016 * economic rights, and the successive licensors have only limited 00017 * liability. 00018 * 00019 * In this respect, the user's attention is drawn to the risks associated 00020 * with loading, using, modifying and/or developing or reproducing the 00021 * software by the user in light of its specific status of free software, 00022 * that may mean that it is complicated to manipulate, and that also 00023 * therefore means that it is reserved for developers and experienced 00024 * professionals having in-depth computer knowledge. Users are therefore 00025 * encouraged to load and test the software's suitability as regards their 00026 * requirements in conditions enabling the security of their systems and/or 00027 * data to be ensured and, more generally, to use and operate it in the 00028 * same conditions as regards security. 00029 * 00030 * The fact that you are presently reading this means that you have had 00031 * knowledge of the CeCILL license and that you accept its terms. 00032 */ 00033 00034 #ifndef __SIMPLELIB_INTERRUPTS_H__ 00035 #define __SIMPLELIB_INTERRUPTS_H__ 00036 00037 #include "mbed_globals.h" 00038 00039 /** Interrupt Managment **/ 00040 #define ENABLE_INTERRUPT(intr) NVIC_EnableIRQ(intr) 00041 #define DISABLE_INTERRUPT(intr) NVIC_DisableIRQ(intr) 00042 00043 #if defined ( __CC_ARM ) 00044 #define __IRQ __irq 00045 #elif defined ( __GNUC__ ) 00046 #define __IRQ __attribute__((interrupt("IRQ"))) 00047 #endif 00048 00049 /* Interrupts names 00050 * WDT_IRQn Watchdog Timer Interrupt 00051 * TIMER0_IRQn Timer0 Interrupt 00052 * TIMER1_IRQn Timer1 Interrupt 00053 * TIMER2_IRQn Timer2 Interrupt 00054 * TIMER3_IRQn Timer3 Interrupt 00055 * UART0_IRQn UART0 Interrupt 00056 * UART1_IRQn UART1 Interrupt 00057 * UART2_IRQn UART2 Interrupt 00058 * UART3_IRQn UART3 Interrupt 00059 * PWM1_IRQn PWM1 Interrupt 00060 * I2C0_IRQn I2C0 Interrupt 00061 * I2C1_IRQn I2C1 Interrupt 00062 * I2C2_IRQn I2C2 Interrupt 00063 * SPI_IRQn SPI Interrupt 00064 * SSP0_IRQn SSP0 Interrupt 00065 * SSP1_IRQn SSP1 Interrupt 00066 * PLL0_IRQn PLL0 Lock (Main PLL) Interrupt 00067 * RTC_IRQn Real Time Clock Interrupt 00068 * EINT0_IRQn External Interrupt 0 Interrupt 00069 * EINT1_IRQn External Interrupt 1 Interrupt 00070 * EINT2_IRQn External Interrupt 2 Interrupt 00071 * EINT3_IRQn External Interrupt 3 Interrupt 00072 * ADC_IRQn A/D Converter Interrupt 00073 * BOD_IRQn Brown-Out Detect Interrupt 00074 * USB_IRQn USB Interrupt 00075 * CAN_IRQn CAN Interrupt 00076 * DMA_IRQn General Purpose DMA Interrupt 00077 * I2S_IRQn I2S Interrupt 00078 * ENET_IRQn Ethernet Interrupt 00079 * RIT_IRQn Repetitive Interrupt Timer Interrupt 00080 * MCPWM_IRQn Motor Control PWM Interrupt 00081 * QEI_IRQn Quadrature Encoder Interface Interrupt 00082 * PLL1_IRQn PLL1 Lock (USB PLL) Interrupt 00083 */ 00084 00085 /* Default interrupt handlers 00086 * WDT_IRQHandler 00087 * TIMER0_IRQHandler 00088 * TIMER1_IRQHandler 00089 * TIMER2_IRQHandler 00090 * TIMER3_IRQHandler 00091 * UART0_IRQHandler 00092 * UART1_IRQHandler 00093 * UART2_IRQHandler 00094 * UART3_IRQHandler 00095 * PWM1_IRQHandler 00096 * I2C0_IRQHandler 00097 * I2C1_IRQHandler 00098 * I2C2_IRQHandler 00099 * SPI_IRQHandler 00100 * SSP0_IRQHandler 00101 * SSP1_IRQHandler 00102 * PLL0_IRQHandler 00103 * RTC_IRQHandler 00104 * EINT0_IRQHandler 00105 * EINT1_IRQHandler 00106 * EINT2_IRQHandler 00107 * EINT3_IRQHandler 00108 * ADC_IRQHandler 00109 * BOD_IRQHandler 00110 * USB_IRQHandler 00111 * CAN_IRQHandler 00112 * DMA_IRQHandler 00113 * I2S_IRQHandler 00114 * ENET_IRQHandler 00115 * RIT_IRQHandler 00116 * MCPWM_IRQHandler 00117 * QEI_IRQHandler 00118 * PLL1_IRQHandler 00119 */ 00120 00121 #endif
Generated on Fri Jul 15 2022 15:25:50 by
1.7.2