From 913629daeacd448c6fb7b90f670e50da3c927310 Mon Sep 17 00:00:00 2001 From: batt Date: Wed, 12 Nov 2008 21:41:39 +0000 Subject: [PATCH] Add config files for keyboard and graphics. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1932 38d2e660-2303-0410-9eaa-f027e97ec537 --- examples/demo/cfg/cfg_gfx.h | 74 +++++++++++++++++++++++++++++++++++++ examples/demo/cfg/cfg_kbd.h | 59 +++++++++++++++++++++++++++++ 2 files changed, 133 insertions(+) create mode 100644 examples/demo/cfg/cfg_gfx.h create mode 100644 examples/demo/cfg/cfg_kbd.h diff --git a/examples/demo/cfg/cfg_gfx.h b/examples/demo/cfg/cfg_gfx.h new file mode 100644 index 00000000..096c427d --- /dev/null +++ b/examples/demo/cfg/cfg_gfx.h @@ -0,0 +1,74 @@ +/** + * \file + * + * + * \brief Configuration file for GFX module. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_GFX_H +#define CFG_GFX_H + +/// Enable line clipping algorithm. +#define CONFIG_GFX_CLIPPING 1 + +/// Enable text rendering in bitmaps. +#define CONFIG_GFX_TEXT 1 + +/// Enable virtual coordinate system. +#define CONFIG_GFX_VCOORDS 1 + +/// Select bitmap pixel format. +#define CONFIG_BITMAP_FMT BITMAP_FMT_PLANAR_V_LSB + +/** + * \name Type for the chart dataset + * \{ + */ +#define CONFIG_CHART_TYPE_X uint8_t +#define CONFIG_CHART_TYPE_Y uint8_t +/*\}*/ + + +/// Enable button bar behind menus +#define CONFIG_MENU_MENUBAR 0 +#define CONFIG_LEVELEDIT_TIMEOUT 0 +#define CONFIG_MENU_TIMEOUT 0 + +/// Enable smooth scrolling in menus +#define CONFIG_MENU_SMOOTH 0 + + +#endif /* CFG_GFX_H */ + diff --git a/examples/demo/cfg/cfg_kbd.h b/examples/demo/cfg/cfg_kbd.h new file mode 100644 index 00000000..82f41d02 --- /dev/null +++ b/examples/demo/cfg/cfg_kbd.h @@ -0,0 +1,59 @@ +/** + * \file + * + * + * \brief Configuration file for keyboard module. + * + * \version $Id$ + * + * \author Daniele Basile + */ + +#ifndef CFG_KBD_H +#define CFG_KBD_H + +/// Keyboard polling method +#define CONFIG_KBD_POLL KBD_POLL_SOFTINT + +/// Enable keyboard event delivery to observers +#define CONFIG_KBD_OBSERVER 0 + +/// Enable key beeps +#define CONFIG_KBD_BEEP 1 + +/// Enable long pression handler for keys +#define CONFIG_KBD_LONGPRESS 0 + +/// Enable calling poor man's scheduler to be called inside kbd_peek +#define CONFIG_KBD_SCHED 1 + +#endif /* CFG_KBD_H */ + -- 2.25.1