Rahul Dahiya / Mbed OS STM32F7 Ethernet
Committer:
rahul_dahiya
Date:
Wed Jan 15 15:57:15 2020 +0530
Revision:
0:fb8047b156bb
STM32F7 LWIP

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rahul_dahiya 0:fb8047b156bb 1 /* mbed Microcontroller Library
rahul_dahiya 0:fb8047b156bb 2 * Copyright (c) 2017-2017 ARM Limited
rahul_dahiya 0:fb8047b156bb 3 *
rahul_dahiya 0:fb8047b156bb 4 * Licensed under the Apache License, Version 2.0 (the "License");
rahul_dahiya 0:fb8047b156bb 5 * you may not use this file except in compliance with the License.
rahul_dahiya 0:fb8047b156bb 6 * You may obtain a copy of the License at
rahul_dahiya 0:fb8047b156bb 7 *
rahul_dahiya 0:fb8047b156bb 8 * http://www.apache.org/licenses/LICENSE-2.0
rahul_dahiya 0:fb8047b156bb 9 *
rahul_dahiya 0:fb8047b156bb 10 * Unless required by applicable law or agreed to in writing, software
rahul_dahiya 0:fb8047b156bb 11 * distributed under the License is distributed on an "AS IS" BASIS,
rahul_dahiya 0:fb8047b156bb 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rahul_dahiya 0:fb8047b156bb 13 * See the License for the specific language governing permissions and
rahul_dahiya 0:fb8047b156bb 14 * limitations under the License.
rahul_dahiya 0:fb8047b156bb 15 */
rahul_dahiya 0:fb8047b156bb 16 #ifndef NVIC_ADDR_H
rahul_dahiya 0:fb8047b156bb 17 #define NVIC_ADDR_H
rahul_dahiya 0:fb8047b156bb 18
rahul_dahiya 0:fb8047b156bb 19 #ifdef __cplusplus
rahul_dahiya 0:fb8047b156bb 20 extern "C" {
rahul_dahiya 0:fb8047b156bb 21 #endif
rahul_dahiya 0:fb8047b156bb 22
rahul_dahiya 0:fb8047b156bb 23 #if defined(__ICCARM__)
rahul_dahiya 0:fb8047b156bb 24 #pragma section=".intvec"
rahul_dahiya 0:fb8047b156bb 25 #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)__section_begin(".intvec"))
rahul_dahiya 0:fb8047b156bb 26 #elif defined(__CC_ARM) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
rahul_dahiya 0:fb8047b156bb 27 extern uint32_t Load$$LR$$LR_IROM1$$Base[];
rahul_dahiya 0:fb8047b156bb 28 #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)Load$$LR$$LR_IROM1$$Base)
rahul_dahiya 0:fb8047b156bb 29 #elif defined(__GNUC__)
rahul_dahiya 0:fb8047b156bb 30 extern uint32_t g_pfnVectors[];
rahul_dahiya 0:fb8047b156bb 31 #define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)g_pfnVectors)
rahul_dahiya 0:fb8047b156bb 32 #else
rahul_dahiya 0:fb8047b156bb 33 #error "Flash vector address not set for this toolchain"
rahul_dahiya 0:fb8047b156bb 34 #endif
rahul_dahiya 0:fb8047b156bb 35
rahul_dahiya 0:fb8047b156bb 36 #ifdef __cplusplus
rahul_dahiya 0:fb8047b156bb 37 }
rahul_dahiya 0:fb8047b156bb 38 #endif
rahul_dahiya 0:fb8047b156bb 39
rahul_dahiya 0:fb8047b156bb 40 #endif