The official mbed C/C SDK provides the software platform and libraries to build your applications.

Fork of mbed by mbed official

Committer:
bogdanm
Date:
Fri Jul 25 09:46:51 2014 +0100
Revision:
87:6213f644d804
Child:
97:433970e64889
Release 87 of the mbed library

Main changes:

- error.h renamed to mbed_error.h to avoid name clashes
- upgraded to V7 of the nRF51822 soft-device 110
- New targets: HRM107
- Improved test infrastructure
- Bug fixes on various targets

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 87:6213f644d804 1 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
bogdanm 87:6213f644d804 2 *
bogdanm 87:6213f644d804 3 * The information contained herein is confidential property of Nordic
bogdanm 87:6213f644d804 4 * Semiconductor ASA.Terms and conditions of usage are described in detail
bogdanm 87:6213f644d804 5 * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
bogdanm 87:6213f644d804 6 *
bogdanm 87:6213f644d804 7 * Licensees are granted free, non-transferable use of the information. NO
bogdanm 87:6213f644d804 8 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from
bogdanm 87:6213f644d804 9 * the file.
bogdanm 87:6213f644d804 10 *
bogdanm 87:6213f644d804 11 */
bogdanm 87:6213f644d804 12
bogdanm 87:6213f644d804 13 #ifndef _COMPILER_ABSTRACTION_H
bogdanm 87:6213f644d804 14 #define _COMPILER_ABSTRACTION_H
bogdanm 87:6213f644d804 15
bogdanm 87:6213f644d804 16 /*lint ++flb "Enter library region" */
bogdanm 87:6213f644d804 17
bogdanm 87:6213f644d804 18 #if defined ( __CC_ARM )
bogdanm 87:6213f644d804 19 #define __ASM __asm /*!< asm keyword for ARM Compiler */
bogdanm 87:6213f644d804 20 #define __INLINE __inline /*!< inline keyword for ARM Compiler */
bogdanm 87:6213f644d804 21 #define __STATIC_INLINE static __inline
bogdanm 87:6213f644d804 22
bogdanm 87:6213f644d804 23 #elif defined ( __ICCARM__ )
bogdanm 87:6213f644d804 24 #define __ASM __asm /*!< asm keyword for IAR Compiler */
bogdanm 87:6213f644d804 25 #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */
bogdanm 87:6213f644d804 26 #define __STATIC_INLINE static inline
bogdanm 87:6213f644d804 27 #define __current_sp() __get_SP()
bogdanm 87:6213f644d804 28
bogdanm 87:6213f644d804 29 #elif defined ( __GNUC__ )
bogdanm 87:6213f644d804 30 #define __ASM __asm /*!< asm keyword for GNU Compiler */
bogdanm 87:6213f644d804 31 #define __INLINE inline /*!< inline keyword for GNU Compiler */
bogdanm 87:6213f644d804 32 #define __STATIC_INLINE static inline
bogdanm 87:6213f644d804 33
bogdanm 87:6213f644d804 34 static __INLINE unsigned int __current_sp(void)
bogdanm 87:6213f644d804 35 {
bogdanm 87:6213f644d804 36 register unsigned sp asm("sp");
bogdanm 87:6213f644d804 37 return sp;
bogdanm 87:6213f644d804 38 }
bogdanm 87:6213f644d804 39
bogdanm 87:6213f644d804 40 #elif defined ( __TASKING__ )
bogdanm 87:6213f644d804 41 #define __ASM __asm /*!< asm keyword for TASKING Compiler */
bogdanm 87:6213f644d804 42 #define __INLINE inline /*!< inline keyword for TASKING Compiler */
bogdanm 87:6213f644d804 43 #define __STATIC_INLINE static inline
bogdanm 87:6213f644d804 44
bogdanm 87:6213f644d804 45 #endif
bogdanm 87:6213f644d804 46
bogdanm 87:6213f644d804 47 /*lint --flb "Leave library region" */
bogdanm 87:6213f644d804 48
bogdanm 87:6213f644d804 49 #endif