The original snake game for the mbedgc

Dependencies:   mbed EthernetNetIf HTTPClient

Fork of SimpleLib_03272011 by J.P. Armstrong

Committer:
jp
Date:
Sat Apr 02 23:23:07 2011 +0000
Revision:
0:011be8250218

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jp 0:011be8250218 1 /*
jp 0:011be8250218 2 * Copyright or � or Copr. 2010, Thomas SOETE
jp 0:011be8250218 3 *
jp 0:011be8250218 4 * Author e-mail: thomas@soete.org
jp 0:011be8250218 5 * Library website : http://mbed.org/users/Alkorin/libraries/SimpleLib/
jp 0:011be8250218 6 *
jp 0:011be8250218 7 * This software is governed by the CeCILL license under French law and
jp 0:011be8250218 8 * abiding by the rules of distribution of free software. You can use,
jp 0:011be8250218 9 * modify and/ or redistribute the software under the terms of the CeCILL
jp 0:011be8250218 10 * license as circulated by CEA, CNRS and INRIA at the following URL
jp 0:011be8250218 11 * "http://www.cecill.info".
jp 0:011be8250218 12 *
jp 0:011be8250218 13 * As a counterpart to the access to the source code and rights to copy,
jp 0:011be8250218 14 * modify and redistribute granted by the license, users are provided only
jp 0:011be8250218 15 * with a limited warranty and the software's author, the holder of the
jp 0:011be8250218 16 * economic rights, and the successive licensors have only limited
jp 0:011be8250218 17 * liability.
jp 0:011be8250218 18 *
jp 0:011be8250218 19 * In this respect, the user's attention is drawn to the risks associated
jp 0:011be8250218 20 * with loading, using, modifying and/or developing or reproducing the
jp 0:011be8250218 21 * software by the user in light of its specific status of free software,
jp 0:011be8250218 22 * that may mean that it is complicated to manipulate, and that also
jp 0:011be8250218 23 * therefore means that it is reserved for developers and experienced
jp 0:011be8250218 24 * professionals having in-depth computer knowledge. Users are therefore
jp 0:011be8250218 25 * encouraged to load and test the software's suitability as regards their
jp 0:011be8250218 26 * requirements in conditions enabling the security of their systems and/or
jp 0:011be8250218 27 * data to be ensured and, more generally, to use and operate it in the
jp 0:011be8250218 28 * same conditions as regards security.
jp 0:011be8250218 29 *
jp 0:011be8250218 30 * The fact that you are presently reading this means that you have had
jp 0:011be8250218 31 * knowledge of the CeCILL license and that you accept its terms.
jp 0:011be8250218 32 */
jp 0:011be8250218 33
jp 0:011be8250218 34 #ifndef __SIMPLELIB_INTERRUPTS_H__
jp 0:011be8250218 35 #define __SIMPLELIB_INTERRUPTS_H__
jp 0:011be8250218 36
jp 0:011be8250218 37 #include "mbed_globals.h"
jp 0:011be8250218 38
jp 0:011be8250218 39 /** Interrupt Managment **/
jp 0:011be8250218 40 #define ENABLE_INTERRUPT(intr) NVIC_EnableIRQ(intr)
jp 0:011be8250218 41 #define DISABLE_INTERRUPT(intr) NVIC_DisableIRQ(intr)
jp 0:011be8250218 42
jp 0:011be8250218 43 #if defined ( __CC_ARM )
jp 0:011be8250218 44 #define __IRQ __irq
jp 0:011be8250218 45 #elif defined ( __GNUC__ )
jp 0:011be8250218 46 #define __IRQ __attribute__((interrupt("IRQ")))
jp 0:011be8250218 47 #endif
jp 0:011be8250218 48
jp 0:011be8250218 49 /* Interrupts names
jp 0:011be8250218 50 * WDT_IRQn Watchdog Timer Interrupt
jp 0:011be8250218 51 * TIMER0_IRQn Timer0 Interrupt
jp 0:011be8250218 52 * TIMER1_IRQn Timer1 Interrupt
jp 0:011be8250218 53 * TIMER2_IRQn Timer2 Interrupt
jp 0:011be8250218 54 * TIMER3_IRQn Timer3 Interrupt
jp 0:011be8250218 55 * UART0_IRQn UART0 Interrupt
jp 0:011be8250218 56 * UART1_IRQn UART1 Interrupt
jp 0:011be8250218 57 * UART2_IRQn UART2 Interrupt
jp 0:011be8250218 58 * UART3_IRQn UART3 Interrupt
jp 0:011be8250218 59 * PWM1_IRQn PWM1 Interrupt
jp 0:011be8250218 60 * I2C0_IRQn I2C0 Interrupt
jp 0:011be8250218 61 * I2C1_IRQn I2C1 Interrupt
jp 0:011be8250218 62 * I2C2_IRQn I2C2 Interrupt
jp 0:011be8250218 63 * SPI_IRQn SPI Interrupt
jp 0:011be8250218 64 * SSP0_IRQn SSP0 Interrupt
jp 0:011be8250218 65 * SSP1_IRQn SSP1 Interrupt
jp 0:011be8250218 66 * PLL0_IRQn PLL0 Lock (Main PLL) Interrupt
jp 0:011be8250218 67 * RTC_IRQn Real Time Clock Interrupt
jp 0:011be8250218 68 * EINT0_IRQn External Interrupt 0 Interrupt
jp 0:011be8250218 69 * EINT1_IRQn External Interrupt 1 Interrupt
jp 0:011be8250218 70 * EINT2_IRQn External Interrupt 2 Interrupt
jp 0:011be8250218 71 * EINT3_IRQn External Interrupt 3 Interrupt
jp 0:011be8250218 72 * ADC_IRQn A/D Converter Interrupt
jp 0:011be8250218 73 * BOD_IRQn Brown-Out Detect Interrupt
jp 0:011be8250218 74 * USB_IRQn USB Interrupt
jp 0:011be8250218 75 * CAN_IRQn CAN Interrupt
jp 0:011be8250218 76 * DMA_IRQn General Purpose DMA Interrupt
jp 0:011be8250218 77 * I2S_IRQn I2S Interrupt
jp 0:011be8250218 78 * ENET_IRQn Ethernet Interrupt
jp 0:011be8250218 79 * RIT_IRQn Repetitive Interrupt Timer Interrupt
jp 0:011be8250218 80 * MCPWM_IRQn Motor Control PWM Interrupt
jp 0:011be8250218 81 * QEI_IRQn Quadrature Encoder Interface Interrupt
jp 0:011be8250218 82 * PLL1_IRQn PLL1 Lock (USB PLL) Interrupt
jp 0:011be8250218 83 */
jp 0:011be8250218 84
jp 0:011be8250218 85 /* Default interrupt handlers
jp 0:011be8250218 86 * WDT_IRQHandler
jp 0:011be8250218 87 * TIMER0_IRQHandler
jp 0:011be8250218 88 * TIMER1_IRQHandler
jp 0:011be8250218 89 * TIMER2_IRQHandler
jp 0:011be8250218 90 * TIMER3_IRQHandler
jp 0:011be8250218 91 * UART0_IRQHandler
jp 0:011be8250218 92 * UART1_IRQHandler
jp 0:011be8250218 93 * UART2_IRQHandler
jp 0:011be8250218 94 * UART3_IRQHandler
jp 0:011be8250218 95 * PWM1_IRQHandler
jp 0:011be8250218 96 * I2C0_IRQHandler
jp 0:011be8250218 97 * I2C1_IRQHandler
jp 0:011be8250218 98 * I2C2_IRQHandler
jp 0:011be8250218 99 * SPI_IRQHandler
jp 0:011be8250218 100 * SSP0_IRQHandler
jp 0:011be8250218 101 * SSP1_IRQHandler
jp 0:011be8250218 102 * PLL0_IRQHandler
jp 0:011be8250218 103 * RTC_IRQHandler
jp 0:011be8250218 104 * EINT0_IRQHandler
jp 0:011be8250218 105 * EINT1_IRQHandler
jp 0:011be8250218 106 * EINT2_IRQHandler
jp 0:011be8250218 107 * EINT3_IRQHandler
jp 0:011be8250218 108 * ADC_IRQHandler
jp 0:011be8250218 109 * BOD_IRQHandler
jp 0:011be8250218 110 * USB_IRQHandler
jp 0:011be8250218 111 * CAN_IRQHandler
jp 0:011be8250218 112 * DMA_IRQHandler
jp 0:011be8250218 113 * I2S_IRQHandler
jp 0:011be8250218 114 * ENET_IRQHandler
jp 0:011be8250218 115 * RIT_IRQHandler
jp 0:011be8250218 116 * MCPWM_IRQHandler
jp 0:011be8250218 117 * QEI_IRQHandler
jp 0:011be8250218 118 * PLL1_IRQHandler
jp 0:011be8250218 119 */
jp 0:011be8250218 120
jp 0:011be8250218 121 #endif