From d528fb218d2773c051098cd44cb6eb0eb0732be0 Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 10 Nov 2018 10:45:28 +1000 Subject: Minor fixups --- src/gos/gos_x_threads.c | 2 +- src/gos/gos_x_threads_cortexm01.h | 2 +- src/gos/gos_x_threads_cortexm347.h | 2 +- src/gos/gos_zephyr.h | 6 ++++++ 4 files changed, 9 insertions(+), 3 deletions(-) (limited to 'src/gos') diff --git a/src/gos/gos_x_threads.c b/src/gos/gos_x_threads.c index ce431de6..7b483315 100644 --- a/src/gos/gos_x_threads.c +++ b/src/gos/gos_x_threads.c @@ -568,4 +568,4 @@ gThreadreturn gfxThreadWait(gThread th) { return (gThreadreturn)t->param; } -#endif /* GFX_USE_OS_RAW32 */ +#endif diff --git a/src/gos/gos_x_threads_cortexm01.h b/src/gos/gos_x_threads_cortexm01.h index 1ffde0f3..57a84981 100644 --- a/src/gos/gos_x_threads_cortexm01.h +++ b/src/gos/gos_x_threads_cortexm01.h @@ -12,7 +12,7 @@ * The context is saved at the current stack location and a pointer is maintained in the thread structure. */ -#if CORTEX_USE_FPU +#if defined(CORTEX_USE_FPU) && CORTEX_USE_FPU #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT #warning "GOS Threads: You have specified GFX_CPU=GFX_CPU_CORTX_M? with no hardware floating point support but CORTEX_USE_FPU is GFXON. Try using GFX_CPU_GFX_CPU_CORTEX_M?_FP instead" #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO diff --git a/src/gos/gos_x_threads_cortexm347.h b/src/gos/gos_x_threads_cortexm347.h index 6d9cc26d..07a1b695 100644 --- a/src/gos/gos_x_threads_cortexm347.h +++ b/src/gos/gos_x_threads_cortexm347.h @@ -13,7 +13,7 @@ */ -#if CORTEX_USE_FPU +#if defined(CORTEX_USE_FPU) && CORTEX_USE_FPU #if GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_DIRECT #warning "GOS Threads: You have specified GFX_CPU=GFX_CPU_CORTX_M? with no hardware floating point support but CORTEX_USE_FPU is GFXON. Try using GFX_CPU_GFX_CPU_CORTEX_M?_FP instead" #elif GFX_COMPILER_WARNING_TYPE == GFX_COMPILER_WARNING_MACRO diff --git a/src/gos/gos_zephyr.h b/src/gos/gos_zephyr.h index c832c0c1..55ef1e35 100644 --- a/src/gos/gos_zephyr.h +++ b/src/gos/gos_zephyr.h @@ -5,6 +5,12 @@ * http://ugfx.io/license.html */ +/** + * @file src/gos/gos_zepyhr.h + * @brief GOS - Operating System Support header file for Zephyr RTOS. + * Zephyr SDK 0.9.1 + */ + #ifndef _GOS_ZEPHYR_H #define _GOS_ZEPHYR_H -- cgit v1.2.3