[nrf51822][gcc_arm][c++]: fix 'impossible constraint in asm' error, used by ble app

pull/468/head
Yihui Xiong 2014-08-28 16:23:15 +08:00
parent 90467175c0
commit bda033dc8e
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@
{ \
__asm( \
"svc %0\n" \
"bx r14" : : "I" (number) : "r0" \
"bx r14" : : "I" ((uint32_t)number) : "r0" \
); \
}
#elif defined (__ICCARM__)