change some io settings for TWR-K22F-120M

Dependents:   twr_helloworld

Committer:
Jasper_lee
Date:
Tue Dec 23 03:35:08 2014 +0000
Revision:
0:b16d94660a33
change some io setting used in TWR-K22F120M

Who changed what in which revision?

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