aboutsummaryrefslogtreecommitdiffstats
path: root/src/gos/gfx_rawrtos.c
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-09-29 08:07:43 +0200
committerinmarket <andrewh@inmarket.com.au>2014-09-29 16:22:35 +1000
commit8efdd2c51419ad7a38a6594ecabe729c6ab824e4 (patch)
tree38a6dd324e04c4076f62dce2671ae88b10b96bfc /src/gos/gfx_rawrtos.c
parentb7a89b2adaa9ee170d20a0454309ed204a6ffa39 (diff)
downloaduGFX-8efdd2c51419ad7a38a6594ecabe729c6ab824e4.tar.gz
uGFX-8efdd2c51419ad7a38a6594ecabe729c6ab824e4.tar.bz2
uGFX-8efdd2c51419ad7a38a6594ecabe729c6ab824e4.zip
/src/gos/gfx_* -> /src/gos/gos_*
Diffstat (limited to 'src/gos/gfx_rawrtos.c')
-rw-r--r--src/gos/gfx_rawrtos.c83
1 files changed, 0 insertions, 83 deletions
diff --git a/src/gos/gfx_rawrtos.c b/src/gos/gfx_rawrtos.c
deleted file mode 100644
index cd684208..00000000
--- a/src/gos/gfx_rawrtos.c
+++ /dev/null
@@ -1,83 +0,0 @@
-#include "gfx.h"
-
-#if GFX_USE_OS_RAWRTOS
-
-#include <string.h>
-#include "raw_api.h"
-#include "raw_config.h"
-
-#if CONFIG_RAW_MUTEX != 1
- #error "GOS: CONFIG_RAW_MUTEX must be defined in raw_config.h"
-#endif
-
-#if CONFIG_RAW_SEMAPHORE != 1
- #error "GOS: CONFIG_RAW_SEMAPHORE must be defined in raw_config.h"
-#endif
-
-
-void _gosInit(void)
-{
- #if !GFX_NO_OS_INIT
- #error "GOS: Operating System initialization for RawRTOS is not yet implemented in uGFX. Please set GFX_NO_OS_INIT to TRUE in your gfxconf.h"
- #else
- #warning "GOS: Operating System initialization has been turned off. Make sure you call raw_os_start() before gfxInit() in your application!"
- #endif
-}
-
-void _gosDeinit(void)
-{
-}
-
-
-void gfxSleepMilliseconds(delaytime_t ms)
-{
- systemticks_t ticks = ms*RAW_TICKS_PER_SECOND/1000;
- if(!ticks)ticks = 1;
- raw_sleep(ticks);
-}
-
-void gfxSleepMicroseconds(delaytime_t us)
-{
- systemticks_t ticks = (us/1000)*RAW_TICKS_PER_SECOND/1000;
- if(!ticks)ticks = 1;
- raw_sleep(ticks);
-}
-
-bool_t gfxSemWait(gfxSem* psem, delaytime_t ms)
-{
- systemticks_t ticks = ms*RAW_TICKS_PER_SECOND/1000;
- if(!ticks)ticks=1;
- if(raw_semaphore_get((psem), ticks)==RAW_SUCCESS)
- return TRUE;
- return FALSE;
-}
-
-bool_t gfxSemWaitI(gfxSem* psem)
-{
- if(raw_semaphore_get((psem), TIME_IMMEDIATE)==RAW_SUCCESS)
- return TRUE;
- return FALSE;
-}
-
-gfxThreadHandle gfxThreadCreate(void *stackarea, size_t stacksz, threadpriority_t prio, DECLARE_THREAD_FUNCTION((*fn),p), void *param)
-{
- RAW_U16 ret;
- gfxThreadHandle taskobj;
-
- taskobj = gfxAlloc(sizeof(RAW_TASK_OBJ));
- ret = raw_task_create(taskobj, (RAW_U8 *)"uGFX_TASK", param,
- prio, 0, stackarea,
- stacksz/sizeof(PORT_STACK) , fn, 1);
-
- if (ret != RAW_SUCCESS) {
- for (;;);
- }
-
- return (taskobj);
-}
-
-
-#endif
-
-
-