From 18f93b67df079a518b94b7de354ad0d43567a64b Mon Sep 17 00:00:00 2001 From: asterix Date: Wed, 11 Jun 2008 17:17:59 +0000 Subject: [PATCH] Add hw blancker file. Move lcd on/off macros to hw file. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1448 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/hw/hw_blanker.h | 50 ++++++++++++++++++++++++++++++++++++++++++ bertos/mware/blanker.c | 6 ++--- 2 files changed, 52 insertions(+), 4 deletions(-) create mode 100644 bertos/hw/hw_blanker.h diff --git a/bertos/hw/hw_blanker.h b/bertos/hw/hw_blanker.h new file mode 100644 index 00000000..442ce3f1 --- /dev/null +++ b/bertos/hw/hw_blanker.h @@ -0,0 +1,50 @@ +/** + * \file + * + * + * \brief Hardware-specific definitions + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef HW_BALNCKER_H +#define HW_BALNCKER_H + +#warning TODO:This is an example implementation, you must implement it! + +#define BLK_LCDON /* power_LcdOn() Implement me! */ +#define BLK_LCDOFF /* power_LcdOff() Implement me! */ + + +#endif /* HW_BLANCKER_H */ + diff --git a/bertos/mware/blanker.c b/bertos/mware/blanker.c index 27b2e04a..5f9cd4bf 100644 --- a/bertos/mware/blanker.c +++ b/bertos/mware/blanker.c @@ -38,6 +38,7 @@ */ #include "blanker.h" +#include "hw/hw_blanker.h" #include #include @@ -45,10 +46,6 @@ /* Time without input events before starting blanker */ #define BLK_BLANKTIMEOUT (15 * 1000) /* ms */ -// TODO: move to blanker_hw.h -#include -#define BLK_LCDON power_LcdOn() -#define BLK_LCDOFF power_LcdOff() #warning FIXME:Revise me! @@ -222,3 +219,4 @@ void blk_disable(void) blk_enabled = false; } } + -- 2.25.1