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.

Committer:
mbed_official
Date:
Wed Jul 01 09:45:11 2015 +0100
Revision:
579:53297373a894
Child:
592:a274ee790e56
Synchronized with git revision d5b4d2ab9c47edb4dc5776e7177b0c2263459081

Full URL: https://github.com/mbedmicro/mbed/commit/d5b4d2ab9c47edb4dc5776e7177b0c2263459081/

Initial version of drivers for SAMR21

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 579:53297373a894 1 /**
mbed_official 579:53297373a894 2 * \file
mbed_official 579:53297373a894 3 *
mbed_official 579:53297373a894 4 * \brief SAM System Interrupt Driver
mbed_official 579:53297373a894 5 *
mbed_official 579:53297373a894 6 * Copyright (C) 2012-2014 Atmel Corporation. All rights reserved.
mbed_official 579:53297373a894 7 *
mbed_official 579:53297373a894 8 * \asf_license_start
mbed_official 579:53297373a894 9 *
mbed_official 579:53297373a894 10 * \page License
mbed_official 579:53297373a894 11 *
mbed_official 579:53297373a894 12 * Redistribution and use in source and binary forms, with or without
mbed_official 579:53297373a894 13 * modification, are permitted provided that the following conditions are met:
mbed_official 579:53297373a894 14 *
mbed_official 579:53297373a894 15 * 1. Redistributions of source code must retain the above copyright notice,
mbed_official 579:53297373a894 16 * this list of conditions and the following disclaimer.
mbed_official 579:53297373a894 17 *
mbed_official 579:53297373a894 18 * 2. Redistributions in binary form must reproduce the above copyright notice,
mbed_official 579:53297373a894 19 * this list of conditions and the following disclaimer in the documentation
mbed_official 579:53297373a894 20 * and/or other materials provided with the distribution.
mbed_official 579:53297373a894 21 *
mbed_official 579:53297373a894 22 * 3. The name of Atmel may not be used to endorse or promote products derived
mbed_official 579:53297373a894 23 * from this software without specific prior written permission.
mbed_official 579:53297373a894 24 *
mbed_official 579:53297373a894 25 * 4. This software may only be redistributed and used in connection with an
mbed_official 579:53297373a894 26 * Atmel microcontroller product.
mbed_official 579:53297373a894 27 *
mbed_official 579:53297373a894 28 * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED
mbed_official 579:53297373a894 29 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
mbed_official 579:53297373a894 30 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
mbed_official 579:53297373a894 31 * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
mbed_official 579:53297373a894 32 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
mbed_official 579:53297373a894 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
mbed_official 579:53297373a894 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
mbed_official 579:53297373a894 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
mbed_official 579:53297373a894 36 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
mbed_official 579:53297373a894 37 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
mbed_official 579:53297373a894 38 * POSSIBILITY OF SUCH DAMAGE.
mbed_official 579:53297373a894 39 *
mbed_official 579:53297373a894 40 * \asf_license_stop
mbed_official 579:53297373a894 41 *
mbed_official 579:53297373a894 42 */
mbed_official 579:53297373a894 43 /**
mbed_official 579:53297373a894 44 * Support and FAQ: visit <a href="http://www.atmel.com/design-support/">Atmel Support</a>
mbed_official 579:53297373a894 45 */
mbed_official 579:53297373a894 46 #ifndef SYSTEM_INTERRUPT_H_INCLUDED
mbed_official 579:53297373a894 47 #define SYSTEM_INTERRUPT_H_INCLUDED
mbed_official 579:53297373a894 48
mbed_official 579:53297373a894 49 #ifdef __cplusplus
mbed_official 579:53297373a894 50 extern "C" {
mbed_official 579:53297373a894 51 #endif
mbed_official 579:53297373a894 52
mbed_official 579:53297373a894 53 /**
mbed_official 579:53297373a894 54 * \defgroup asfdoc_sam0_system_interrupt_group SAM System Interrupt Driver (SYSTEM INTERRUPT)
mbed_official 579:53297373a894 55 *
mbed_official 579:53297373a894 56 * This driver for Atmel庐 | SMART SAM devices provides an interface for the configuration
mbed_official 579:53297373a894 57 * and management of internal software and hardware interrupts/exceptions.
mbed_official 579:53297373a894 58 *
mbed_official 579:53297373a894 59 * The following peripherals are used by this module:
mbed_official 579:53297373a894 60 * - NVIC (Nested Vector Interrupt Controller)
mbed_official 579:53297373a894 61 *
mbed_official 579:53297373a894 62 * The following devices can use this module:
mbed_official 579:53297373a894 63 * - Atmel | SMART SAM D20/D21
mbed_official 579:53297373a894 64 * - Atmel | SMART SAM R21
mbed_official 579:53297373a894 65 * - Atmel | SMART SAM D10/D11
mbed_official 579:53297373a894 66 * - Atmel | SMART SAM L21
mbed_official 579:53297373a894 67 *
mbed_official 579:53297373a894 68 * The outline of this documentation is as follows:
mbed_official 579:53297373a894 69 * - \ref asfdoc_sam0_system_interrupt_prerequisites
mbed_official 579:53297373a894 70 * - \ref asfdoc_sam0_system_interrupt_module_overview
mbed_official 579:53297373a894 71 * - \ref asfdoc_sam0_system_interrupt_special_considerations
mbed_official 579:53297373a894 72 * - \ref asfdoc_sam0_system_interrupt_extra_info
mbed_official 579:53297373a894 73 * - \ref asfdoc_sam0_system_interrupt_examples
mbed_official 579:53297373a894 74 * - \ref asfdoc_sam0_system_interrupt_api_overview
mbed_official 579:53297373a894 75 *
mbed_official 579:53297373a894 76 *
mbed_official 579:53297373a894 77 * \section asfdoc_sam0_system_interrupt_prerequisites Prerequisites
mbed_official 579:53297373a894 78 *
mbed_official 579:53297373a894 79 * There are no prerequisites for this module.
mbed_official 579:53297373a894 80 *
mbed_official 579:53297373a894 81 *
mbed_official 579:53297373a894 82 * \section asfdoc_sam0_system_interrupt_module_overview Module Overview
mbed_official 579:53297373a894 83 *
mbed_official 579:53297373a894 84 * The ARM&reg; Cortex&reg; M0+ core contains an interrupt and exception vector table, which
mbed_official 579:53297373a894 85 * can be used to configure the device's interrupt handlers; individual
mbed_official 579:53297373a894 86 * interrupts and exceptions can be enabled and disabled, as well as configured
mbed_official 579:53297373a894 87 * with a variable priority.
mbed_official 579:53297373a894 88 *
mbed_official 579:53297373a894 89 * This driver provides a set of wrappers around the core interrupt functions,
mbed_official 579:53297373a894 90 * to expose a simple API for the management of global and individual interrupts
mbed_official 579:53297373a894 91 * within the device.
mbed_official 579:53297373a894 92 *
mbed_official 579:53297373a894 93 * \subsection asfdoc_sam0_system_interrupt_module_overview_criticalsec Critical Sections
mbed_official 579:53297373a894 94 * In some applications it is important to ensure that no interrupts may be
mbed_official 579:53297373a894 95 * executed by the system whilst a critical portion of code is being run; for
mbed_official 579:53297373a894 96 * example, a buffer may be copied from one context to another - during which
mbed_official 579:53297373a894 97 * interrupts must be disabled to avoid corruption of the source buffer contents
mbed_official 579:53297373a894 98 * until the copy has completed. This driver provides a basic API to enter and
mbed_official 579:53297373a894 99 * exit nested critical sections, so that global interrupts can be kept disabled
mbed_official 579:53297373a894 100 * for as long as necessary to complete a critical application code section.
mbed_official 579:53297373a894 101 *
mbed_official 579:53297373a894 102 * \subsection asfdoc_sam0_system_interrupt_module_overview_softints Software Interrupts
mbed_official 579:53297373a894 103 * For some applications, it may be desirable to raise a module or core
mbed_official 579:53297373a894 104 * interrupt via software. For this reason, a set of APIs to set an interrupt or
mbed_official 579:53297373a894 105 * exception as pending are provided to the user application.
mbed_official 579:53297373a894 106 *
mbed_official 579:53297373a894 107 * \section asfdoc_sam0_system_interrupt_special_considerations Special Considerations
mbed_official 579:53297373a894 108 *
mbed_official 579:53297373a894 109 * Interrupts from peripherals in the SAM devices are on a per-module basis;
mbed_official 579:53297373a894 110 * an interrupt raised from any source within a module will cause a single,
mbed_official 579:53297373a894 111 * module-common handler to execute. It is the user application or driver's
mbed_official 579:53297373a894 112 * responsibility to de-multiplex the module-common interrupt to determine the
mbed_official 579:53297373a894 113 * exact interrupt cause.
mbed_official 579:53297373a894 114 *
mbed_official 579:53297373a894 115 * \section asfdoc_sam0_system_interrupt_extra_info Extra Information
mbed_official 579:53297373a894 116 *
mbed_official 579:53297373a894 117 * For extra information, see \ref asfdoc_sam0_system_interrupt_extra. This includes:
mbed_official 579:53297373a894 118 * - \ref asfdoc_sam0_system_interrupt_extra_acronyms
mbed_official 579:53297373a894 119 * - \ref asfdoc_sam0_system_interrupt_extra_dependencies
mbed_official 579:53297373a894 120 * - \ref asfdoc_sam0_system_interrupt_extra_errata
mbed_official 579:53297373a894 121 * - \ref asfdoc_sam0_system_interrupt_extra_history
mbed_official 579:53297373a894 122 *
mbed_official 579:53297373a894 123 *
mbed_official 579:53297373a894 124 * \section asfdoc_sam0_system_interrupt_examples Examples
mbed_official 579:53297373a894 125 *
mbed_official 579:53297373a894 126 * For a list of examples related to this driver, see
mbed_official 579:53297373a894 127 * \ref asfdoc_sam0_system_interrupt_exqsg.
mbed_official 579:53297373a894 128 *
mbed_official 579:53297373a894 129 * \section asfdoc_sam0_system_interrupt_api_overview API Overview
mbed_official 579:53297373a894 130 * @{
mbed_official 579:53297373a894 131 */
mbed_official 579:53297373a894 132
mbed_official 579:53297373a894 133 #include <compiler.h>
mbed_official 579:53297373a894 134 //#include <core_cm0plus.h>
mbed_official 579:53297373a894 135 #include "system_interrupt_features.h"
mbed_official 579:53297373a894 136
mbed_official 579:53297373a894 137 #include <interrupt_sam_nvic.h>
mbed_official 579:53297373a894 138 #include "status_codes.h"
mbed_official 579:53297373a894 139 /**
mbed_official 579:53297373a894 140 * \brief Table of possible system interrupt/exception vector priorities.
mbed_official 579:53297373a894 141 *
mbed_official 579:53297373a894 142 * Table of all possible interrupt and exception vector priorities within the
mbed_official 579:53297373a894 143 * device.
mbed_official 579:53297373a894 144 */
mbed_official 579:53297373a894 145 enum system_interrupt_priority_level {
mbed_official 579:53297373a894 146 /** Priority level 0, the highest possible interrupt priority. */
mbed_official 579:53297373a894 147 SYSTEM_INTERRUPT_PRIORITY_LEVEL_0 = 0,
mbed_official 579:53297373a894 148 /** Priority level 1. */
mbed_official 579:53297373a894 149 SYSTEM_INTERRUPT_PRIORITY_LEVEL_1 = 1,
mbed_official 579:53297373a894 150 /** Priority level 2. */
mbed_official 579:53297373a894 151 SYSTEM_INTERRUPT_PRIORITY_LEVEL_2 = 2,
mbed_official 579:53297373a894 152 /** Priority level 3, the lowest possible interrupt priority. */
mbed_official 579:53297373a894 153 SYSTEM_INTERRUPT_PRIORITY_LEVEL_3 = 3,
mbed_official 579:53297373a894 154 };
mbed_official 579:53297373a894 155
mbed_official 579:53297373a894 156 /**
mbed_official 579:53297373a894 157 * \name Critical Section Management
mbed_official 579:53297373a894 158 * @{
mbed_official 579:53297373a894 159 */
mbed_official 579:53297373a894 160
mbed_official 579:53297373a894 161 /**
mbed_official 579:53297373a894 162 * \brief Enters a critical section.
mbed_official 579:53297373a894 163 *
mbed_official 579:53297373a894 164 * Disables global interrupts. To support nested critical sections, an internal
mbed_official 579:53297373a894 165 * count of the critical section nesting will be kept, so that global interrupts
mbed_official 579:53297373a894 166 * are only re-enabled upon leaving the outermost nested critical section.
mbed_official 579:53297373a894 167 *
mbed_official 579:53297373a894 168 */
mbed_official 579:53297373a894 169 static inline void system_interrupt_enter_critical_section(void)
mbed_official 579:53297373a894 170 {
mbed_official 579:53297373a894 171 cpu_irq_enter_critical();
mbed_official 579:53297373a894 172 }
mbed_official 579:53297373a894 173
mbed_official 579:53297373a894 174 /**
mbed_official 579:53297373a894 175 * \brief Leaves a critical section.
mbed_official 579:53297373a894 176 *
mbed_official 579:53297373a894 177 * Enables global interrupts. To support nested critical sections, an internal
mbed_official 579:53297373a894 178 * count of the critical section nesting will be kept, so that global interrupts
mbed_official 579:53297373a894 179 * are only re-enabled upon leaving the outermost nested critical section.
mbed_official 579:53297373a894 180 *
mbed_official 579:53297373a894 181 */
mbed_official 579:53297373a894 182 static inline void system_interrupt_leave_critical_section(void)
mbed_official 579:53297373a894 183 {
mbed_official 579:53297373a894 184 cpu_irq_leave_critical();
mbed_official 579:53297373a894 185 }
mbed_official 579:53297373a894 186
mbed_official 579:53297373a894 187 /** @} */
mbed_official 579:53297373a894 188
mbed_official 579:53297373a894 189 /**
mbed_official 579:53297373a894 190 * \name Interrupt Enabling/Disabling
mbed_official 579:53297373a894 191 * @{
mbed_official 579:53297373a894 192 */
mbed_official 579:53297373a894 193
mbed_official 579:53297373a894 194 /**
mbed_official 579:53297373a894 195 * \brief Check if global interrupts are enabled.
mbed_official 579:53297373a894 196 *
mbed_official 579:53297373a894 197 * Checks if global interrupts are currently enabled.
mbed_official 579:53297373a894 198 *
mbed_official 579:53297373a894 199 * \returns A boolean that identifies if the global interrupts are enabled or not.
mbed_official 579:53297373a894 200 *
mbed_official 579:53297373a894 201 * \retval true Global interrupts are currently enabled
mbed_official 579:53297373a894 202 * \retval false Global interrupts are currently disabled
mbed_official 579:53297373a894 203 *
mbed_official 579:53297373a894 204 */
mbed_official 579:53297373a894 205 static inline bool system_interrupt_is_global_enabled(void)
mbed_official 579:53297373a894 206 {
mbed_official 579:53297373a894 207 return cpu_irq_is_enabled();
mbed_official 579:53297373a894 208 }
mbed_official 579:53297373a894 209
mbed_official 579:53297373a894 210 /**
mbed_official 579:53297373a894 211 * \brief Enables global interrupts.
mbed_official 579:53297373a894 212 *
mbed_official 579:53297373a894 213 * Enables global interrupts in the device to fire any enabled interrupt handlers.
mbed_official 579:53297373a894 214 */
mbed_official 579:53297373a894 215 static inline void system_interrupt_enable_global(void)
mbed_official 579:53297373a894 216 {
mbed_official 579:53297373a894 217 cpu_irq_enable();
mbed_official 579:53297373a894 218 }
mbed_official 579:53297373a894 219
mbed_official 579:53297373a894 220 /**
mbed_official 579:53297373a894 221 * \brief Disables global interrupts.
mbed_official 579:53297373a894 222 *
mbed_official 579:53297373a894 223 * Disabled global interrupts in the device, preventing any enabled interrupt
mbed_official 579:53297373a894 224 * handlers from executing.
mbed_official 579:53297373a894 225 */
mbed_official 579:53297373a894 226 static inline void system_interrupt_disable_global(void)
mbed_official 579:53297373a894 227 {
mbed_official 579:53297373a894 228 cpu_irq_disable();
mbed_official 579:53297373a894 229 }
mbed_official 579:53297373a894 230
mbed_official 579:53297373a894 231 /**
mbed_official 579:53297373a894 232 * \brief Checks if an interrupt vector is enabled or not.
mbed_official 579:53297373a894 233 *
mbed_official 579:53297373a894 234 * Checks if a specific interrupt vector is currently enabled.
mbed_official 579:53297373a894 235 *
mbed_official 579:53297373a894 236 * \param[in] vector Interrupt vector number to check
mbed_official 579:53297373a894 237 *
mbed_official 579:53297373a894 238 * \returns A variable identifying if the requested interrupt vector is enabled.
mbed_official 579:53297373a894 239 *
mbed_official 579:53297373a894 240 * \retval true Specified interrupt vector is currently enabled
mbed_official 579:53297373a894 241 * \retval false Specified interrupt vector is currently disabled
mbed_official 579:53297373a894 242 *
mbed_official 579:53297373a894 243 */
mbed_official 579:53297373a894 244 static inline bool system_interrupt_is_enabled(
mbed_official 579:53297373a894 245 const enum system_interrupt_vector vector)
mbed_official 579:53297373a894 246 {
mbed_official 579:53297373a894 247 return (bool)((NVIC->ISER[0] >> (uint32_t)vector) & 0x00000001);
mbed_official 579:53297373a894 248 }
mbed_official 579:53297373a894 249
mbed_official 579:53297373a894 250 /**
mbed_official 579:53297373a894 251 * \brief Enable interrupt vector.
mbed_official 579:53297373a894 252 *
mbed_official 579:53297373a894 253 * Enables execution of the software handler for the requested interrupt vector.
mbed_official 579:53297373a894 254 *
mbed_official 579:53297373a894 255 * \param[in] vector Interrupt vector to enable
mbed_official 579:53297373a894 256 */
mbed_official 579:53297373a894 257 static inline void system_interrupt_enable(
mbed_official 579:53297373a894 258 const enum system_interrupt_vector vector)
mbed_official 579:53297373a894 259 {
mbed_official 579:53297373a894 260 NVIC->ISER[0] = (uint32_t)(1 << ((uint32_t)vector & 0x0000001f));
mbed_official 579:53297373a894 261 }
mbed_official 579:53297373a894 262
mbed_official 579:53297373a894 263 /**
mbed_official 579:53297373a894 264 * \brief Disable interrupt vector.
mbed_official 579:53297373a894 265 *
mbed_official 579:53297373a894 266 * Disables execution of the software handler for the requested interrupt vector.
mbed_official 579:53297373a894 267 *
mbed_official 579:53297373a894 268 * \param[in] vector Interrupt vector to disable
mbed_official 579:53297373a894 269 */
mbed_official 579:53297373a894 270 static inline void system_interrupt_disable(
mbed_official 579:53297373a894 271 const enum system_interrupt_vector vector)
mbed_official 579:53297373a894 272 {
mbed_official 579:53297373a894 273 NVIC->ICER[0] = (uint32_t)(1 << ((uint32_t)vector & 0x0000001f));
mbed_official 579:53297373a894 274 }
mbed_official 579:53297373a894 275
mbed_official 579:53297373a894 276 /** @} */
mbed_official 579:53297373a894 277
mbed_official 579:53297373a894 278 /**
mbed_official 579:53297373a894 279 * \name Interrupt State Management
mbed_official 579:53297373a894 280 * @{
mbed_official 579:53297373a894 281 */
mbed_official 579:53297373a894 282
mbed_official 579:53297373a894 283 /**
mbed_official 579:53297373a894 284 * \brief Get active interrupt (if any).
mbed_official 579:53297373a894 285 *
mbed_official 579:53297373a894 286 * Return the vector number for the current executing software handler, if any.
mbed_official 579:53297373a894 287 *
mbed_official 579:53297373a894 288 * \return Interrupt number that is currently executing.
mbed_official 579:53297373a894 289 */
mbed_official 579:53297373a894 290 static inline enum system_interrupt_vector system_interrupt_get_active(void)
mbed_official 579:53297373a894 291 {
mbed_official 579:53297373a894 292 uint32_t IPSR = __get_IPSR();
mbed_official 579:53297373a894 293
mbed_official 579:53297373a894 294 return (enum system_interrupt_vector)(IPSR & _SYSTEM_INTERRUPT_IPSR_MASK);
mbed_official 579:53297373a894 295 }
mbed_official 579:53297373a894 296
mbed_official 579:53297373a894 297 bool system_interrupt_is_pending(
mbed_official 579:53297373a894 298 const enum system_interrupt_vector vector);
mbed_official 579:53297373a894 299
mbed_official 579:53297373a894 300 enum status_code system_interrupt_set_pending(
mbed_official 579:53297373a894 301 const enum system_interrupt_vector vector);
mbed_official 579:53297373a894 302
mbed_official 579:53297373a894 303 enum status_code system_interrupt_clear_pending(
mbed_official 579:53297373a894 304 const enum system_interrupt_vector vector);
mbed_official 579:53297373a894 305
mbed_official 579:53297373a894 306 /** @} */
mbed_official 579:53297373a894 307
mbed_official 579:53297373a894 308 /**
mbed_official 579:53297373a894 309 * \name Interrupt Priority Management
mbed_official 579:53297373a894 310 * @{
mbed_official 579:53297373a894 311 */
mbed_official 579:53297373a894 312
mbed_official 579:53297373a894 313 enum status_code system_interrupt_set_priority(
mbed_official 579:53297373a894 314 const enum system_interrupt_vector vector,
mbed_official 579:53297373a894 315 const enum system_interrupt_priority_level priority_level);
mbed_official 579:53297373a894 316
mbed_official 579:53297373a894 317 enum system_interrupt_priority_level system_interrupt_get_priority(
mbed_official 579:53297373a894 318 const enum system_interrupt_vector vector);
mbed_official 579:53297373a894 319
mbed_official 579:53297373a894 320 /** @} */
mbed_official 579:53297373a894 321
mbed_official 579:53297373a894 322 /** @} */
mbed_official 579:53297373a894 323
mbed_official 579:53297373a894 324 /**
mbed_official 579:53297373a894 325 * \page asfdoc_sam0_system_interrupt_extra Extra Information for SYSTEM INTERRUPT Driver
mbed_official 579:53297373a894 326 *
mbed_official 579:53297373a894 327 * \section asfdoc_sam0_system_interrupt_extra_acronyms Acronyms
mbed_official 579:53297373a894 328 * The table below presents the acronyms used in this module:
mbed_official 579:53297373a894 329 *
mbed_official 579:53297373a894 330 * <table>
mbed_official 579:53297373a894 331 * <tr>
mbed_official 579:53297373a894 332 * <th>Acronym</th>
mbed_official 579:53297373a894 333 * <th>Description</th>
mbed_official 579:53297373a894 334 * </tr>
mbed_official 579:53297373a894 335 * <tr>
mbed_official 579:53297373a894 336 * <td>ISR</td>
mbed_official 579:53297373a894 337 * <td>Interrupt Service Routine</td>
mbed_official 579:53297373a894 338 * </tr>
mbed_official 579:53297373a894 339 * <tr>
mbed_official 579:53297373a894 340 * <td>NMI</td>
mbed_official 579:53297373a894 341 * <td>Non-maskable Interrupt</td>
mbed_official 579:53297373a894 342 * </tr>
mbed_official 579:53297373a894 343 * <tr>
mbed_official 579:53297373a894 344 * <td>SERCOM</td>
mbed_official 579:53297373a894 345 * <td>Serial Communication Interface</td>
mbed_official 579:53297373a894 346 * </tr>
mbed_official 579:53297373a894 347 * </table>
mbed_official 579:53297373a894 348 *
mbed_official 579:53297373a894 349 *
mbed_official 579:53297373a894 350 * \section asfdoc_sam0_system_interrupt_extra_dependencies Dependencies
mbed_official 579:53297373a894 351 * This driver has the following dependencies:
mbed_official 579:53297373a894 352 *
mbed_official 579:53297373a894 353 * - None
mbed_official 579:53297373a894 354 *
mbed_official 579:53297373a894 355 *
mbed_official 579:53297373a894 356 * \section asfdoc_sam0_system_interrupt_extra_errata Errata
mbed_official 579:53297373a894 357 * There are no errata related to this driver.
mbed_official 579:53297373a894 358 *
mbed_official 579:53297373a894 359 *
mbed_official 579:53297373a894 360 * \section asfdoc_sam0_system_interrupt_extra_history Module History
mbed_official 579:53297373a894 361 * An overview of the module history is presented in the table below, with
mbed_official 579:53297373a894 362 * details on the enhancements and fixes made to the module since its first
mbed_official 579:53297373a894 363 * release. The current version of this corresponds to the newest version in
mbed_official 579:53297373a894 364 * the table.
mbed_official 579:53297373a894 365 *
mbed_official 579:53297373a894 366 * <table>
mbed_official 579:53297373a894 367 * <tr>
mbed_official 579:53297373a894 368 * <th>Changelog</th>
mbed_official 579:53297373a894 369 * </tr>
mbed_official 579:53297373a894 370 * <tr>
mbed_official 579:53297373a894 371 * <td>Added support for SAML21</td>
mbed_official 579:53297373a894 372 * </tr>
mbed_official 579:53297373a894 373 * <tr>
mbed_official 579:53297373a894 374 * <td>Added support for SAMD10/D11</td>
mbed_official 579:53297373a894 375 * </tr>
mbed_official 579:53297373a894 376 * <tr>
mbed_official 579:53297373a894 377 * <td>Added support for SAMR21</td>
mbed_official 579:53297373a894 378 * </tr>
mbed_official 579:53297373a894 379 * <tr>
mbed_official 579:53297373a894 380 * <td>Added support for SAMD21</td>
mbed_official 579:53297373a894 381 * </tr>
mbed_official 579:53297373a894 382 * <tr>
mbed_official 579:53297373a894 383 * <td>Initial Release</td>
mbed_official 579:53297373a894 384 * </tr>
mbed_official 579:53297373a894 385 * </table>
mbed_official 579:53297373a894 386 */
mbed_official 579:53297373a894 387
mbed_official 579:53297373a894 388 /**
mbed_official 579:53297373a894 389 * \page asfdoc_sam0_system_interrupt_exqsg Examples for SYSTEM INTERRUPT Driver
mbed_official 579:53297373a894 390 *
mbed_official 579:53297373a894 391 * This is a list of the available Quick Start guides (QSGs) and example
mbed_official 579:53297373a894 392 * applications for \ref asfdoc_sam0_system_interrupt_group. QSGs are simple examples with
mbed_official 579:53297373a894 393 * step-by-step instructions to configure and use this driver in a selection of
mbed_official 579:53297373a894 394 * use cases. Note that QSGs can be compiled as a standalone application or be
mbed_official 579:53297373a894 395 * added to the user application.
mbed_official 579:53297373a894 396 *
mbed_official 579:53297373a894 397 * - \subpage asfdoc_sam0_system_interrupt_critsec_use_case
mbed_official 579:53297373a894 398 * - \subpage asfdoc_sam0_system_interrupt_enablemodint_use_case
mbed_official 579:53297373a894 399 *
mbed_official 579:53297373a894 400 * \page asfdoc_sam0_system_interrupt_document_revision_history Document Revision History
mbed_official 579:53297373a894 401 *
mbed_official 579:53297373a894 402 * <table>
mbed_official 579:53297373a894 403 * <tr>
mbed_official 579:53297373a894 404 * <th>Doc. Rev.</td>
mbed_official 579:53297373a894 405 * <th>Date</td>
mbed_official 579:53297373a894 406 * <th>Comments</td>
mbed_official 579:53297373a894 407 * </tr>
mbed_official 579:53297373a894 408 * <tr>
mbed_official 579:53297373a894 409 * <td>E</td>
mbed_official 579:53297373a894 410 * <td>11/2014</td>
mbed_official 579:53297373a894 411 * <td>Add support for SAML21.</td>
mbed_official 579:53297373a894 412 * </tr>
mbed_official 579:53297373a894 413 * <tr>
mbed_official 579:53297373a894 414 * <td>D</td>
mbed_official 579:53297373a894 415 * <td>12/2014</td>
mbed_official 579:53297373a894 416 * <td>Add support for SAMR21 and SAMD10/D11.</td>
mbed_official 579:53297373a894 417 * </tr>
mbed_official 579:53297373a894 418 * <tr>
mbed_official 579:53297373a894 419 * <td>C</td>
mbed_official 579:53297373a894 420 * <td>01/2014</td>
mbed_official 579:53297373a894 421 * <td>Add support for SAMD21.</td>
mbed_official 579:53297373a894 422 * </tr>
mbed_official 579:53297373a894 423 * <tr>
mbed_official 579:53297373a894 424 * <td>B</td>
mbed_official 579:53297373a894 425 * <td>06/2013</td>
mbed_official 579:53297373a894 426 * <td>Corrected documentation typos.</td>
mbed_official 579:53297373a894 427 * </tr>
mbed_official 579:53297373a894 428 * <tr>
mbed_official 579:53297373a894 429 * <td>A</td>
mbed_official 579:53297373a894 430 * <td>06/2013</td>
mbed_official 579:53297373a894 431 * <td>Initial release</td>
mbed_official 579:53297373a894 432 * </tr>
mbed_official 579:53297373a894 433 * </table>
mbed_official 579:53297373a894 434 */
mbed_official 579:53297373a894 435
mbed_official 579:53297373a894 436 #ifdef __cplusplus
mbed_official 579:53297373a894 437 }
mbed_official 579:53297373a894 438 #endif
mbed_official 579:53297373a894 439
mbed_official 579:53297373a894 440 #endif // #ifndef SYSTEM_INTERRUPT_H_INCLUDED