A simple 128x32 graphical LCD program to quickstart with LCD on ARM mbed IoT Starter Kit. This requires mbed Applciation Shield with FRDM-K64F platform.
mbed/TARGET_NRF51822/compiler_abstraction.h@0:60d829a0353a, 2015-04-11 (annotated)
- Committer:
- tushki7
- Date:
- Sat Apr 11 04:08:13 2015 +0000
- Revision:
- 0:60d829a0353a
A simple 128x32 LCD program to quickstart with LCD on ARM mbed IoT Starter kit. Mbed Application Shield is required if using FRDM-K64F platform.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
tushki7 | 0:60d829a0353a | 1 | /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved. |
tushki7 | 0:60d829a0353a | 2 | * |
tushki7 | 0:60d829a0353a | 3 | * The information contained herein is confidential property of Nordic |
tushki7 | 0:60d829a0353a | 4 | * Semiconductor ASA.Terms and conditions of usage are described in detail |
tushki7 | 0:60d829a0353a | 5 | * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
tushki7 | 0:60d829a0353a | 6 | * |
tushki7 | 0:60d829a0353a | 7 | * Licensees are granted free, non-transferable use of the information. NO |
tushki7 | 0:60d829a0353a | 8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
tushki7 | 0:60d829a0353a | 9 | * the file. |
tushki7 | 0:60d829a0353a | 10 | * |
tushki7 | 0:60d829a0353a | 11 | */ |
tushki7 | 0:60d829a0353a | 12 | |
tushki7 | 0:60d829a0353a | 13 | #ifndef _COMPILER_ABSTRACTION_H |
tushki7 | 0:60d829a0353a | 14 | #define _COMPILER_ABSTRACTION_H |
tushki7 | 0:60d829a0353a | 15 | |
tushki7 | 0:60d829a0353a | 16 | /*lint ++flb "Enter library region" */ |
tushki7 | 0:60d829a0353a | 17 | |
tushki7 | 0:60d829a0353a | 18 | #if defined ( __CC_ARM ) |
tushki7 | 0:60d829a0353a | 19 | #define __ASM __asm /*!< asm keyword for ARM Compiler */ |
tushki7 | 0:60d829a0353a | 20 | #define __INLINE __inline /*!< inline keyword for ARM Compiler */ |
tushki7 | 0:60d829a0353a | 21 | #define __STATIC_INLINE static __inline |
tushki7 | 0:60d829a0353a | 22 | |
tushki7 | 0:60d829a0353a | 23 | #elif defined ( __ICCARM__ ) |
tushki7 | 0:60d829a0353a | 24 | #define __ASM __asm /*!< asm keyword for IAR Compiler */ |
tushki7 | 0:60d829a0353a | 25 | #define __INLINE inline /*!< inline keyword for IAR Compiler. Only available in High optimization mode! */ |
tushki7 | 0:60d829a0353a | 26 | #define __STATIC_INLINE static inline |
tushki7 | 0:60d829a0353a | 27 | #define __current_sp() __get_SP() |
tushki7 | 0:60d829a0353a | 28 | |
tushki7 | 0:60d829a0353a | 29 | #elif defined ( __GNUC__ ) |
tushki7 | 0:60d829a0353a | 30 | #define __ASM __asm /*!< asm keyword for GNU Compiler */ |
tushki7 | 0:60d829a0353a | 31 | #define __INLINE inline /*!< inline keyword for GNU Compiler */ |
tushki7 | 0:60d829a0353a | 32 | #define __STATIC_INLINE static inline |
tushki7 | 0:60d829a0353a | 33 | |
tushki7 | 0:60d829a0353a | 34 | static __INLINE unsigned int __current_sp(void) |
tushki7 | 0:60d829a0353a | 35 | { |
tushki7 | 0:60d829a0353a | 36 | register unsigned sp asm("sp"); |
tushki7 | 0:60d829a0353a | 37 | return sp; |
tushki7 | 0:60d829a0353a | 38 | } |
tushki7 | 0:60d829a0353a | 39 | |
tushki7 | 0:60d829a0353a | 40 | #elif defined ( __TASKING__ ) |
tushki7 | 0:60d829a0353a | 41 | #define __ASM __asm /*!< asm keyword for TASKING Compiler */ |
tushki7 | 0:60d829a0353a | 42 | #define __INLINE inline /*!< inline keyword for TASKING Compiler */ |
tushki7 | 0:60d829a0353a | 43 | #define __STATIC_INLINE static inline |
tushki7 | 0:60d829a0353a | 44 | |
tushki7 | 0:60d829a0353a | 45 | #endif |
tushki7 | 0:60d829a0353a | 46 | |
tushki7 | 0:60d829a0353a | 47 | /*lint --flb "Leave library region" */ |
tushki7 | 0:60d829a0353a | 48 | |
tushki7 | 0:60d829a0353a | 49 | #endif |