aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gos_keil.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gos/gos_keil.c')
-rw-r--r--src/gos/gos_keil.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gos/gos_keil.c b/src/gos/gos_keil.c
index d29e8f83..e8eef7b8 100644
--- a/src/gos/gos_keil.c
+++ b/src/gos/gos_keil.c
@@ -68,15 +68,16 @@ void gfxSemSignalI(gfxSem* psem)
}
gfxThreadHandle gfxThreadCreate(void* stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION((*fn),p), void* param)
-{
+{
osThreadDef_t def;
- def.pthread = fn;
+
+ (void)stackarea;
+
+ def.pthread = (os_pthread)fn;
def.tpriority = prio;
def.instances = 1;
def.stacksize = stacksz;
- (void)stackarea;
-
return osThreadCreate(&def, param);
}