mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Revision:
613:bc40b8d2aec4
Parent:
612:fba1c7dc54c0
Child:
614:9d86c2ae5de0
--- a/targets/hal/TARGET_Atmel/TARGET_SAM21/drivers/system/interrupt/system_interrupt_samd21/system_interrupt_features.h	Tue Aug 18 15:00:09 2015 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,136 +0,0 @@
-#ifndef SYSTEM_INTERRUPT_FEATURES_H_INCLUDED
-#define SYSTEM_INTERRUPT_FEATURES_H_INCLUDED
-
-#if !defined(__DOXYGEN__)
-
-/* Generates a interrupt vector table enum list entry for a given module type
-   and index (e.g. "SYSTEM_INTERRUPT_MODULE_TC0 = TC0_IRQn,"). */
-#  define _MODULE_IRQn(n, module) \
-		SYSTEM_INTERRUPT_MODULE_##module##n = module##n##_IRQn,
-
-/* Generates interrupt vector table enum list entries for all instances of a
-   given module type on the selected device. */
-#  define _SYSTEM_INTERRUPT_MODULES(name) \
-		MREPEAT(name##_INST_NUM, _MODULE_IRQn, name)
-
-#  define _SYSTEM_INTERRUPT_IPSR_MASK              0x0000003f
-#  define _SYSTEM_INTERRUPT_PRIORITY_MASK          0x00000007
-
-#  define _SYSTEM_INTERRUPT_EXTERNAL_VECTOR_START  0
-
-#  define _SYSTEM_INTERRUPT_SYSTICK_PRI_POS        29
-#endif
-
-/**
- * \addtogroup asfdoc_sam0_system_interrupt_group
- * @{
- */
-
-/**
- * \brief Table of possible system interrupt/exception vector numbers.
- *
- * Table of all possible interrupt and exception vector indexes within the
- * SAMD21 device.
- */
-#if defined(__DOXYGEN__)
-/** \note The actual enumeration name is "system_interrupt_vector". */
-enum system_interrupt_vector_samd21 {
-#else
-enum system_interrupt_vector {
-#endif
-    /** Interrupt vector index for a NMI interrupt. */
-    SYSTEM_INTERRUPT_NON_MASKABLE      = NonMaskableInt_IRQn,
-    /** Interrupt vector index for a Hard Fault memory access exception. */
-    SYSTEM_INTERRUPT_HARD_FAULT        = HardFault_IRQn,
-    /** Interrupt vector index for a Supervisor Call exception. */
-    SYSTEM_INTERRUPT_SV_CALL           = SVCall_IRQn,
-    /** Interrupt vector index for a Pending Supervisor interrupt. */
-    SYSTEM_INTERRUPT_PENDING_SV        = PendSV_IRQn,
-    /** Interrupt vector index for a System Tick interrupt. */
-    SYSTEM_INTERRUPT_SYSTICK           = SysTick_IRQn,
-
-    /** Interrupt vector index for a Power Manager peripheral interrupt. */
-    SYSTEM_INTERRUPT_MODULE_PM         = PM_IRQn,
-    /** Interrupt vector index for a System Control peripheral interrupt. */
-    SYSTEM_INTERRUPT_MODULE_SYSCTRL    = SYSCTRL_IRQn,
-    /** Interrupt vector index for a Watch Dog peripheral interrupt. */
-    SYSTEM_INTERRUPT_MODULE_WDT        = WDT_IRQn,
-    /** Interrupt vector index for a Real Time Clock peripheral interrupt. */
-    SYSTEM_INTERRUPT_MODULE_RTC        = RTC_IRQn,
-    /** Interrupt vector index for an External Interrupt peripheral interrupt. */
-    SYSTEM_INTERRUPT_MODULE_EIC        = EIC_IRQn,
-    /** Interrupt vector index for a Non Volatile Memory Controller interrupt. */
-    SYSTEM_INTERRUPT_MODULE_NVMCTRL    = NVMCTRL_IRQn,
-    /** Interrupt vector index for a Direct Memory Access interrupt. */
-    SYSTEM_INTERRUPT_MODULE_DMA        = DMAC_IRQn,
-    /** Interrupt vector index for a Universal Serial Bus interrupt. */
-    SYSTEM_INTERRUPT_MODULE_USB        = USB_IRQn,
-    /** Interrupt vector index for an Event System interrupt. */
-    SYSTEM_INTERRUPT_MODULE_EVSYS      = EVSYS_IRQn,
-#if defined(__DOXYGEN__)
-    /** Interrupt vector index for a SERCOM peripheral interrupt.
-     *
-     *  Each specific device may contain several SERCOM peripherals; each module
-     *  instance will have its own entry in the table, with the instance number
-     *  substituted for "n" in the entry name (e.g.
-     *  \c SYSTEM_INTERRUPT_MODULE_SERCOM0).
-     */
-    SYSTEM_INTERRUPT_MODULE_SERCOMn    = SERCOMn_IRQn,
-
-    /** Interrupt vector index for a Timer/Counter Control peripheral interrupt.
-     *
-     *  Each specific device may contain several TCC peripherals; each module
-     *  instance will have its own entry in the table, with the instance number
-     *  substituted for "n" in the entry name (e.g.
-     *  \c SYSTEM_INTERRUPT_MODULE_TCC0).
-     */
-    SYSTEM_INTERRUPT_MODULE_TCCn        = TCCn_IRQn,
-
-    /** Interrupt vector index for a Timer/Counter peripheral interrupt.
-     *
-     *  Each specific device may contain several TC peripherals; each module
-     *  instance will have its own entry in the table, with the instance number
-     *  substituted for "n" in the entry name (e.g.
-     *  \c SYSTEM_INTERRUPT_MODULE_TC3).
-     */
-    SYSTEM_INTERRUPT_MODULE_TCn        = TCn_IRQn,
-#else
-    //_SYSTEM_INTERRUPT_MODULES(SERCOM)
-    SYSTEM_INTERRUPT_MODULE_SERCOM0 = SERCOM0_IRQn,
-    SYSTEM_INTERRUPT_MODULE_SERCOM1 = SERCOM1_IRQn,
-    SYSTEM_INTERRUPT_MODULE_SERCOM2 = SERCOM2_IRQn,
-    SYSTEM_INTERRUPT_MODULE_SERCOM3 = SERCOM3_IRQn,
-    SYSTEM_INTERRUPT_MODULE_SERCOM4 = SERCOM4_IRQn,
-    SYSTEM_INTERRUPT_MODULE_SERCOM5 = SERCOM5_IRQn,
-
-    //_SYSTEM_INTERRUPT_MODULES(TCC)
-    SYSTEM_INTERRUPT_MODULE_TCC0 = TCC0_IRQn,
-    SYSTEM_INTERRUPT_MODULE_TCC1 = TCC1_IRQn,
-    SYSTEM_INTERRUPT_MODULE_TCC2 = TCC2_IRQn,
-
-    SYSTEM_INTERRUPT_MODULE_TC3        = TC3_IRQn,
-    SYSTEM_INTERRUPT_MODULE_TC4        = TC4_IRQn,
-    SYSTEM_INTERRUPT_MODULE_TC5        = TC5_IRQn,
-#  if (SAMD21J)
-    SYSTEM_INTERRUPT_MODULE_TC6        = TC6_IRQn,
-    SYSTEM_INTERRUPT_MODULE_TC7        = TC7_IRQn,
-#  endif
-#endif
-
-    /** Interrupt vector index for an Analog Comparator peripheral interrupt. */
-    SYSTEM_INTERRUPT_MODULE_AC         = AC_IRQn,
-    /** Interrupt vector index for an Analog-to-Digital peripheral interrupt. */
-    SYSTEM_INTERRUPT_MODULE_ADC        = ADC_IRQn,
-    /** Interrupt vector index for a Digital-to-Analog peripheral interrupt. */
-    SYSTEM_INTERRUPT_MODULE_DAC        = DAC_IRQn,
-    /** Interrupt vector index for a Peripheral Touch Controller peripheral
-     *  interrupt. */
-    SYSTEM_INTERRUPT_MODULE_PTC        = PTC_IRQn,
-    /** Interrupt vector index for a Inter-IC Sound Interface peripheral
-     *  interrupt. */
-    SYSTEM_INTERRUPT_MODULE_I2S        = I2S_IRQn,
-};
-
-/** @} */
-
-#endif