Fix known BUG in nrf_svc.h when compiled by GCC.

pull/2234/head
Vincent Coubard 2016-06-17 11:20:51 +01:00
parent 96b2604469
commit 3fe77a5efe
2 changed files with 30 additions and 30 deletions

View File

@ -52,7 +52,7 @@ extern "C" {
#define SVCALL(number, return_type, signature) return_type __svc(number) signature
#elif defined (__GNUC__)
#ifdef __cplusplus
#define GCC_CAST_CPP (uint8_t)
#define GCC_CAST_CPP (uint16_t)
#else
#define GCC_CAST_CPP
#endif

View File

@ -52,7 +52,7 @@ extern "C" {
#define SVCALL(number, return_type, signature) return_type __svc(number) signature
#elif defined (__GNUC__)
#ifdef __cplusplus
#define GCC_CAST_CPP (uint8_t)
#define GCC_CAST_CPP (uint16_t)
#else
#define GCC_CAST_CPP
#endif