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

Dependents:   hello SerialTestv11 SerialTestv12 Sierpinski ... more

mbed 2

This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.

Committer:
AnnaBridge
Date:
Wed Feb 20 20:53:29 2019 +0000
Revision:
172:65be27845400
Parent:
171:3a7713b1edbc
mbed library release version 165

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AnnaBridge 156:ff21514d8981 1 /* mbed Microcontroller Library - cmsis_nvic
AnnaBridge 156:ff21514d8981 2 * Copyright (c) 2009-2011 ARM Limited. All rights reserved.
AnnaBridge 156:ff21514d8981 3 */
AnnaBridge 156:ff21514d8981 4
AnnaBridge 156:ff21514d8981 5 #ifndef MBED_CMSIS_NVIC_H
AnnaBridge 156:ff21514d8981 6 #define MBED_CMSIS_NVIC_H
AnnaBridge 156:ff21514d8981 7
AnnaBridge 156:ff21514d8981 8 #define NVIC_NUM_VECTORS (16 + EXT_IRQ_COUNT) // CORE + MCU Peripherals
AnnaBridge 156:ff21514d8981 9
AnnaBridge 156:ff21514d8981 10 /* For GCC, use dynamic vector table placement since otherwise we run into an alignment conflict */
AnnaBridge 156:ff21514d8981 11 #if (defined (__GNUC__) && (!defined(__CC_ARM) && (!defined(__ARMCC_VERSION))))
AnnaBridge 156:ff21514d8981 12 extern uint32_t __start_vector_table__; // Dynamic vector positioning in GCC
AnnaBridge 156:ff21514d8981 13 #define NVIC_RAM_VECTOR_ADDRESS (&__start_vector_table__)
AnnaBridge 156:ff21514d8981 14 #else
AnnaBridge 156:ff21514d8981 15 #define NVIC_RAM_VECTOR_ADDRESS 0x20000000 // Vectors positioned at start of RAM
AnnaBridge 156:ff21514d8981 16 #endif
AnnaBridge 156:ff21514d8981 17
AnnaBridge 156:ff21514d8981 18 #endif /* MBED_CMSIS_NVIC_H */