BLE Temperature Service Mobile and Ubiquitous Computing Module Birkbeck College

Dependencies:   DS1820

Committer:
gkroussos
Date:
Sun Mar 08 19:42:20 2015 +0000
Revision:
0:dd0fea342ad2
BLE Temperature Service ; Mobile and Ubiquitous Computing Module; Birkbeck College

Who changed what in which revision?

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