From: batt <batt@38d2e660-2303-0410-9eaa-f027e97ec537> Date: Wed, 12 Nov 2008 21:41:39 +0000 (+0000) Subject: Add config files for keyboard and graphics. X-Git-Tag: 2.0.0~2 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=913629daeacd448c6fb7b90f670e50da3c927310;p=bertos.git Add config files for keyboard and graphics. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1932 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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 + * <!-- + * This file is part of BeRTOS. + * + * Bertos is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + * + * Copyright 2008 Develer S.r.l. (http://www.develer.com/) + * All Rights Reserved. + * --> + * + * \brief Configuration file for GFX module. + * + * \version $Id$ + * + * \author Daniele Basile <asterix@develer.com> + */ + +#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 + * <!-- + * This file is part of BeRTOS. + * + * Bertos is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + * As a special exception, you may use this file as part of a free software + * library without restriction. Specifically, if other files instantiate + * templates or use macros or inline functions from this file, or you compile + * this file and link it with other files to produce an executable, this + * file does not by itself cause the resulting executable to be covered by + * the GNU General Public License. This exception does not however + * invalidate any other reasons why the executable file might be covered by + * the GNU General Public License. + * + * Copyright 2008 Develer S.r.l. (http://www.develer.com/) + * All Rights Reserved. + * --> + * + * \brief Configuration file for keyboard module. + * + * \version $Id$ + * + * \author Daniele Basile <asterix@develer.com> + */ + +#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 */ +