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.
TARGET_KL46Z/cmsis_nvic.h@76:824293ae5e43, 2014-01-13 (annotated)
- Committer:
- bogdanm
- Date:
- Mon Jan 13 15:31:11 2014 +0200
- Revision:
- 76:824293ae5e43
- Parent:
- 73:1efda918f0ba
- Child:
- 90:cb3d968589d8
Release 76 of the mbed library
Main changes:
- enabled SPI slave on LPC812
- the RTOS should now work with GCC_CR (LPC1768 and LPC4088)
- GCC now uses 'hard' as the floating point ABI (arguments in floating point registers)
- Bug fixes on various platforms
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 73:1efda918f0ba | 1 | /* mbed Microcontroller Library - cmsis_nvic |
bogdanm | 73:1efda918f0ba | 2 | * Copyright (c) 2009-2011 ARM Limited. All rights reserved. |
bogdanm | 73:1efda918f0ba | 3 | * |
bogdanm | 73:1efda918f0ba | 4 | * CMSIS-style functionality to support dynamic vectors |
bogdanm | 73:1efda918f0ba | 5 | */ |
bogdanm | 73:1efda918f0ba | 6 | |
bogdanm | 73:1efda918f0ba | 7 | #ifndef MBED_CMSIS_NVIC_H |
bogdanm | 73:1efda918f0ba | 8 | #define MBED_CMSIS_NVIC_H |
bogdanm | 73:1efda918f0ba | 9 | |
bogdanm | 73:1efda918f0ba | 10 | #define NVIC_NUM_VECTORS (16 + 32) // CORE + MCU Peripherals |
bogdanm | 73:1efda918f0ba | 11 | #define NVIC_USER_IRQ_OFFSET 16 |
bogdanm | 73:1efda918f0ba | 12 | |
bogdanm | 73:1efda918f0ba | 13 | #include "cmsis.h" |
bogdanm | 73:1efda918f0ba | 14 | |
bogdanm | 73:1efda918f0ba | 15 | #ifdef __cplusplus |
bogdanm | 73:1efda918f0ba | 16 | extern "C" { |
bogdanm | 73:1efda918f0ba | 17 | #endif |
bogdanm | 73:1efda918f0ba | 18 | |
bogdanm | 73:1efda918f0ba | 19 | void NVIC_SetVector(IRQn_Type IRQn, uint32_t vector); |
bogdanm | 73:1efda918f0ba | 20 | uint32_t NVIC_GetVector(IRQn_Type IRQn); |
bogdanm | 73:1efda918f0ba | 21 | |
bogdanm | 73:1efda918f0ba | 22 | #ifdef __cplusplus |
bogdanm | 73:1efda918f0ba | 23 | } |
bogdanm | 73:1efda918f0ba | 24 | #endif |
bogdanm | 73:1efda918f0ba | 25 | |
bogdanm | 73:1efda918f0ba | 26 | #endif |