summaryrefslogtreecommitdiff
path: root/src/st-util/semihosting.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/st-util/semihosting.h')
-rw-r--r--src/st-util/semihosting.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/st-util/semihosting.h b/src/st-util/semihosting.h
index 8c1ac15..fd3990b 100644
--- a/src/st-util/semihosting.h
+++ b/src/st-util/semihosting.h
@@ -1,5 +1,7 @@
-#ifndef _SEMIHOSTING_H_
-#define _SEMIHOSTING_H_
+#ifndef SEMIHOSTING_H
+#define SEMIHOSTING_H
+
+#include <stdint.h>
#include <stlink.h>
@@ -29,6 +31,6 @@
#define SEMIHOST_SYS_ELAPSED 0x30
#define SEMIHOST_SYS_TICKFREQ 0x31
-int do_semihosting(stlink_t *sl, uint32_t r0, uint32_t r1, uint32_t *ret);
+int32_t do_semihosting(stlink_t *sl, uint32_t r0, uint32_t r1, uint32_t *ret);
-#endif // _SEMIHOSTING_H_
+#endif // SEMIHOSTING_H