Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
TARGET_BLUEPILL/device/cmsis_nvic.h@0:2577a4fb6e72, 2020-05-13 (annotated)
- Committer:
- hudakz
- Date:
- Wed May 13 12:25:39 2020 +0000
- Revision:
- 0:2577a4fb6e72
Bluepill STM32F103C8 support for Mbed OS 6
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| hudakz | 0:2577a4fb6e72 | 1 | /* mbed Microcontroller Library |
| hudakz | 0:2577a4fb6e72 | 2 | ******************************************************************************* |
| hudakz | 0:2577a4fb6e72 | 3 | * Copyright (c) 2016, STMicroelectronics |
| hudakz | 0:2577a4fb6e72 | 4 | * All rights reserved. |
| hudakz | 0:2577a4fb6e72 | 5 | * |
| hudakz | 0:2577a4fb6e72 | 6 | * Redistribution and use in source and binary forms, with or without |
| hudakz | 0:2577a4fb6e72 | 7 | * modification, are permitted provided that the following conditions are met: |
| hudakz | 0:2577a4fb6e72 | 8 | * |
| hudakz | 0:2577a4fb6e72 | 9 | * 1. Redistributions of source code must retain the above copyright notice, |
| hudakz | 0:2577a4fb6e72 | 10 | * this list of conditions and the following disclaimer. |
| hudakz | 0:2577a4fb6e72 | 11 | * 2. Redistributions in binary form must reproduce the above copyright notice, |
| hudakz | 0:2577a4fb6e72 | 12 | * this list of conditions and the following disclaimer in the documentation |
| hudakz | 0:2577a4fb6e72 | 13 | * and/or other materials provided with the distribution. |
| hudakz | 0:2577a4fb6e72 | 14 | * 3. Neither the name of STMicroelectronics nor the names of its contributors |
| hudakz | 0:2577a4fb6e72 | 15 | * may be used to endorse or promote products derived from this software |
| hudakz | 0:2577a4fb6e72 | 16 | * without specific prior written permission. |
| hudakz | 0:2577a4fb6e72 | 17 | * |
| hudakz | 0:2577a4fb6e72 | 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
| hudakz | 0:2577a4fb6e72 | 19 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| hudakz | 0:2577a4fb6e72 | 20 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE |
| hudakz | 0:2577a4fb6e72 | 21 | * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE |
| hudakz | 0:2577a4fb6e72 | 22 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| hudakz | 0:2577a4fb6e72 | 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| hudakz | 0:2577a4fb6e72 | 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| hudakz | 0:2577a4fb6e72 | 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, |
| hudakz | 0:2577a4fb6e72 | 26 | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| hudakz | 0:2577a4fb6e72 | 27 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| hudakz | 0:2577a4fb6e72 | 28 | ******************************************************************************* |
| hudakz | 0:2577a4fb6e72 | 29 | */ |
| hudakz | 0:2577a4fb6e72 | 30 | |
| hudakz | 0:2577a4fb6e72 | 31 | #ifndef MBED_CMSIS_NVIC_H |
| hudakz | 0:2577a4fb6e72 | 32 | #define MBED_CMSIS_NVIC_H |
| hudakz | 0:2577a4fb6e72 | 33 | |
| hudakz | 0:2577a4fb6e72 | 34 | // CORE: 16 vectors (= 64 bytes from 0x00 to 0x3F) |
| hudakz | 0:2577a4fb6e72 | 35 | // MCU Peripherals: 43 vectors (= 172 bytes from 0x40 to 0xEB) |
| hudakz | 0:2577a4fb6e72 | 36 | // Total: 236 bytes to be reserved in RAM (see scatter file) |
| hudakz | 0:2577a4fb6e72 | 37 | #define NVIC_NUM_VECTORS (16 + 43) |
| hudakz | 0:2577a4fb6e72 | 38 | #define NVIC_RAM_VECTOR_ADDRESS 0x20000000 // Vectors positioned at start of RAM |
| hudakz | 0:2577a4fb6e72 | 39 | |
| hudakz | 0:2577a4fb6e72 | 40 | #endif |