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 by
TARGET_HRM1017/TARGET_NORDIC/TARGET_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_API/include/nrf_svc.h@87:6213f644d804, 2014-07-25 (annotated)
- Committer:
- bogdanm
- Date:
- Fri Jul 25 09:46:51 2014 +0100
- Revision:
- 87:6213f644d804
- Parent:
- TARGET_NRF51822/TARGET_NORDIC/TARGET_NRF51822/Lib/s110_nrf51822_6_0_0/s110_nrf51822_6.0.0_API/include/nrf_svc.h@82:6473597d706e
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?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 82:6473597d706e | 1 | #ifndef NRF_SVC__ |
bogdanm | 82:6473597d706e | 2 | #define NRF_SVC__ |
bogdanm | 82:6473597d706e | 3 | |
bogdanm | 82:6473597d706e | 4 | #ifdef SVCALL_AS_NORMAL_FUNCTION |
bogdanm | 82:6473597d706e | 5 | #define SVCALL(number, return_type, signature) return_type signature |
bogdanm | 82:6473597d706e | 6 | #else |
bogdanm | 82:6473597d706e | 7 | |
bogdanm | 82:6473597d706e | 8 | #ifndef SVCALL |
bogdanm | 82:6473597d706e | 9 | #if defined (__CC_ARM) |
bogdanm | 82:6473597d706e | 10 | #define SVCALL(number, return_type, signature) return_type __svc(number) signature |
bogdanm | 82:6473597d706e | 11 | #elif defined (__GNUC__) |
bogdanm | 82:6473597d706e | 12 | #define SVCALL(number, return_type, signature) \ |
bogdanm | 82:6473597d706e | 13 | _Pragma("GCC diagnostic ignored \"-Wreturn-type\"") \ |
bogdanm | 82:6473597d706e | 14 | _Pragma("GCC diagnostic ignored \"-Wunused-function\"") \ |
bogdanm | 82:6473597d706e | 15 | __attribute__((naked)) static return_type signature \ |
bogdanm | 82:6473597d706e | 16 | { \ |
bogdanm | 82:6473597d706e | 17 | __asm( \ |
bogdanm | 82:6473597d706e | 18 | "svc %0\n" \ |
bogdanm | 82:6473597d706e | 19 | "bx r14" : : "I" (number) : "r0" \ |
bogdanm | 82:6473597d706e | 20 | ); \ |
bogdanm | 82:6473597d706e | 21 | } |
bogdanm | 82:6473597d706e | 22 | #elif defined (__ICCARM__) |
bogdanm | 82:6473597d706e | 23 | #define PRAGMA(x) _Pragma(#x) |
bogdanm | 82:6473597d706e | 24 | #define SVCALL(number, return_type, signature) \ |
bogdanm | 82:6473597d706e | 25 | PRAGMA(swi_number = number) \ |
bogdanm | 82:6473597d706e | 26 | __swi return_type signature; |
bogdanm | 82:6473597d706e | 27 | #else |
bogdanm | 82:6473597d706e | 28 | #define SVCALL(number, return_type, signature) return_type signature |
bogdanm | 82:6473597d706e | 29 | #endif |
bogdanm | 82:6473597d706e | 30 | #endif // SVCALL |
bogdanm | 82:6473597d706e | 31 | |
bogdanm | 82:6473597d706e | 32 | #endif // SVCALL_AS_NORMAL_FUNCTION |
bogdanm | 82:6473597d706e | 33 | #endif // NRF_SVC__ |