Import Mbed OS hard-float snapshot
This commit is contained in:
28
targets/TARGET_TOSHIBA/TARGET_TMPM46B/device/cmsis_nvic.h
Normal file
28
targets/TARGET_TOSHIBA/TARGET_TMPM46B/device/cmsis_nvic.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/* mbed Microcontroller Library - cmsis_nvic for TMPM46B
|
||||
* Copyright (c) 2011 ARM Limited. All rights reserved.
|
||||
*
|
||||
* CMSIS-style functionality to support dynamic vectors
|
||||
*/
|
||||
|
||||
#ifndef MBED_CMSIS_NVIC_H
|
||||
#define MBED_CMSIS_NVIC_H
|
||||
|
||||
|
||||
#if defined(__ICCARM__)
|
||||
#pragma section=".intvec"
|
||||
#define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)__section_begin(".intvec"))
|
||||
#elif defined(__CC_ARM)
|
||||
extern uint32_t Load$$LR$$LR_IROM1$$Base[];
|
||||
#define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)Load$$LR$$LR_IROM1$$Base)
|
||||
#elif defined(__GNUC__)
|
||||
extern uint32_t vectors[];
|
||||
#define NVIC_FLASH_VECTOR_ADDRESS ((uint32_t)vectors)
|
||||
#else
|
||||
#error "Flash vector address not set for this toolchain"
|
||||
#endif
|
||||
|
||||
|
||||
#define NVIC_NUM_VECTORS (119)
|
||||
#define NVIC_RAM_VECTOR_ADDRESS 0x20000000 // Location of vectors in RAM
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user