Skip to content

Commit bda033d

Browse files
committed
[nrf51822][gcc_arm][c++]: fix 'impossible constraint in asm' error, used by ble app
1 parent 9046717 commit bda033d

File tree

1 file changed

+1
-1
lines changed
  • libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_API/include

1 file changed

+1
-1
lines changed

libraries/mbed/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_7_0_0/s110_nrf51822_7.0.0_API/include/nrf_svc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
{ \
1717
__asm( \
1818
"svc %0\n" \
19-
"bx r14" : : "I" (number) : "r0" \
19+
"bx r14" : : "I" ((uint32_t)number) : "r0" \
2020
); \
2121
}
2222
#elif defined (__ICCARM__)

0 commit comments

Comments
 (0)