From: asterix Date: Tue, 20 May 2008 16:01:47 +0000 (+0000) Subject: Clean up. Add copyright notice. Mark as FIXME. X-Git-Tag: 2.0.0~624 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=0c04262c1f4728f4593a1d60ab851ea8d6375faa;p=bertos.git Clean up. Add copyright notice. Mark as FIXME. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1310 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/mware/blanker.c b/bertos/mware/blanker.c index 5cf5247e..27b2e04a 100644 --- a/bertos/mware/blanker.c +++ b/bertos/mware/blanker.c @@ -38,6 +38,7 @@ */ #include "blanker.h" + #include #include @@ -49,6 +50,7 @@ #define BLK_LCDON power_LcdOn() #define BLK_LCDOFF power_LcdOff() +#warning FIXME:Revise me! /** Keyboard event handler to listen for key presses in blanker. */ static KbdHandler blk_KbdHandler; diff --git a/bertos/mware/resource.h b/bertos/mware/resource.h index f30b232f..e40d6898 100644 --- a/bertos/mware/resource.h +++ b/bertos/mware/resource.h @@ -1,27 +1,58 @@ +/** + * \file + * + * + * \brief TODO: + * + * \version $Id$ + * + * \author Bernardo Innocenti + * \author Stefano Fedrigo + */ + #ifndef MWARE_RESOURCE_H #define MWARE_RESOURCE_H #include // time_t #include +#warning FIXME:Revise me! + /* * Abstract locking primitives used by host OS. */ -#if CONFIG_KERNEL - - typedef Semaphore ResourceLock; - #define ResMan_sleep() timer_delay(1) - #define ResMan_time_t mtime_t - -#else /* FreeRTOS */ - - #include - #include - #include // vTaskDelay() +typedef Semaphore ResourceLock; +#define ResMan_sleep() timer_delay(1) +#define ResMan_time_t mtime_t - #define ResMan_sleep() vTaskDelay((portTickType)1 * portTICK_RATE_MS) - #define ResMan_time_t portTickType -#endif // Forward decl