Skip to content

Commit f3e11eb

Browse files
committed
semihost - fix inline __semihost for IAR (add static)
This was causing errors at my machine (for programs like MBED_10, RTOS_1): Error[Li005]: no definition for "__semihost" [referenced from semihost_api.o(mbed.a)] [ERROR] Error[Li005]: no definition for "__semihost" [referenced from semihost_api.o(mbed.a)]
1 parent 607c9d1 commit f3e11eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hal/api/semihost_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ extern "C" {
2828
#ifndef __CC_ARM
2929

3030
#if defined(__ICCARM__)
31-
inline int __semihost(int reason, const void *arg) {
31+
static inline int __semihost(int reason, const void *arg) {
3232
return __semihosting(reason, (void*)arg);
3333
}
3434
#else

0 commit comments

Comments
 (0)