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.
Fork of mbed-src by
core_arm7.c
00001 /* mbed Microcontroller Library 00002 * Copyright (C) 2008-2009 ARM Limited. All rights reserved. 00003 * 00004 * ARM7 version of CMSIS-like functionality - not advised for use outside mbed! 00005 * based on core_cm3.h, V1.20 00006 */ 00007 00008 #include <stdint.h> 00009 00010 00011 /* define compiler specific symbols */ 00012 #if defined ( __CC_ARM ) 00013 #define __ASM __asm /*!< asm keyword for armcc */ 00014 #define __INLINE __inline /*!< inline keyword for armcc */ 00015 00016 #elif defined ( __ICCARM__ ) 00017 #define __ASM __asm /*!< asm keyword for iarcc */ 00018 #define __INLINE inline /*!< inline keyword for iarcc. Only avaiable in High optimization mode! */ 00019 00020 #elif defined ( __GNUC__ ) 00021 #define __ASM __asm /*!< asm keyword for gcc */ 00022 #define __INLINE inline /*!< inline keyword for gcc */ 00023 00024 #elif defined ( __TASKING__ ) 00025 #define __ASM __asm /*!< asm keyword for TASKING Compiler */ 00026 #define __INLINE inline /*!< inline keyword for TASKING Compiler */ 00027 00028 #endif 00029 00030 #if defined ( __CC_ARM ) 00031 /** 00032 * @brief Return the Main Stack Pointer (return current ARM7 stack) 00033 * 00034 * @param none 00035 * @return uint32_t Main Stack Pointer 00036 * 00037 * Return the current value of the MSP (main stack pointer) 00038 * Cortex processor register 00039 */ 00040 uint32_t __get_MSP(void) 00041 { 00042 return __current_sp(); 00043 } 00044 #endif
Generated on Tue Jul 12 2022 13:47:00 by
 1.7.2
 1.7.2 
    