From 5e8c4c5c1d4652faea7a3ac9f33b8d75be95edb3 Mon Sep 17 00:00:00 2001 From: asterix Date: Tue, 22 Mar 2011 14:54:48 +0000 Subject: [PATCH] Some fix to build example with nightly test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4796 38d2e660-2303-0410-9eaa-f027e97ec537 --- .../examples/sam3x-ek_display/cfg/cfg_adc.h | 4 +- .../examples/sam3x-ek_display/cfg/cfg_menu.h | 67 +++++++++++++++++++ .../examples/sam3x-ek_display/project.bertos | 46 +++++++------ .../sam3x-ek_display/sam3x-ek_display.mk | 2 + 4 files changed, 95 insertions(+), 24 deletions(-) create mode 100644 boards/sam3x-ek/examples/sam3x-ek_display/cfg/cfg_menu.h diff --git a/boards/sam3x-ek/examples/sam3x-ek_display/cfg/cfg_adc.h b/boards/sam3x-ek/examples/sam3x-ek_display/cfg/cfg_adc.h index 62a65734..7147fd94 100644 --- a/boards/sam3x-ek/examples/sam3x-ek_display/cfg/cfg_adc.h +++ b/boards/sam3x-ek/examples/sam3x-ek_display/cfg/cfg_adc.h @@ -44,7 +44,7 @@ * $WIZ$ type = "enum" * $WIZ$ value_list = "log_level" */ -#define ADC_LOG_LEVEL LOG_LVL_INFO +#define ADC_LOG_LEVEL LOG_LVL_WARN /** * Module logging format. @@ -52,7 +52,7 @@ * $WIZ$ type = "enum" * $WIZ$ value_list = "log_format" */ -#define ADC_LOG_FORMAT LOG_FMT_VERBOSE +#define ADC_LOG_FORMAT LOG_FMT_TERSE /** * Clock Frequency for ADC conversion. diff --git a/boards/sam3x-ek/examples/sam3x-ek_display/cfg/cfg_menu.h b/boards/sam3x-ek/examples/sam3x-ek_display/cfg/cfg_menu.h new file mode 100644 index 00000000..bbfa1e76 --- /dev/null +++ b/boards/sam3x-ek/examples/sam3x-ek_display/cfg/cfg_menu.h @@ -0,0 +1,67 @@ +/** + * \file + * + * + * \brief Configuration file for Menu module. + * + * \author Daniele Basile + */ + +#ifndef CFG_MENU_H +#define CFG_MENU_H + +/** + * Enable button bar behind menus + * $WIZ$ type = "boolean" + */ +#define CONFIG_MENU_MENUBAR 0 + +/** + * Level Edit Timeout + * $WIZ$ type = "boolean" + */ +#define CONFIG_LEVELEDIT_TIMEOUT 0 + +/** + * Menu timeout + * $WIZ$ type = "boolean" + */ +#define CONFIG_MENU_TIMEOUT 0 + +/** + * Enable smooth scrolling in menus + * $WIZ$ type = "boolean" + */ +#define CONFIG_MENU_SMOOTH 1 + + +#endif /* CFG_MENU_H */ + diff --git a/boards/sam3x-ek/examples/sam3x-ek_display/project.bertos b/boards/sam3x-ek/examples/sam3x-ek_display/project.bertos index 4bc3d1b1..f1af6821 100644 --- a/boards/sam3x-ek/examples/sam3x-ek_display/project.bertos +++ b/boards/sam3x-ek/examples/sam3x-ek_display/project.bertos @@ -21,9 +21,9 @@ S'path' p10 Varm-none-eabi-gcc p11 -ssS'PROJECT_SRC_PATH_FROM_MAKEFILE' +ssS'PROJECT_HW_PATH_FROM_MAKEFILE' p12 -Vboards/sam3x-ek/examples/sam3x-ek_display +Vboards/sam3x-ek p13 sS'ENABLED_MODULES' p14 @@ -34,9 +34,9 @@ aS'kbd' p17 aS'menu' p18 -aS'signal' +aS'adc' p19 -aS'debug' +aS'signal' p20 aS'kernel' p21 @@ -44,38 +44,40 @@ aS'text_format' p22 aS'sprintf' p23 -aS'timer' +aS'debug' p24 -aS'gfx' +aS'timer' p25 -aS'formatwr' +aS'gfx' p26 -aS'lcd_hx8347' +aS'formatwr' p27 -aS'heap' +aS'lcd_hx8347' p28 -asS'CPU_NAME' +aS'heap' p29 -VSAM3X8 +asS'CPU_NAME' p30 -sS'PROJECT_HW_PATH' +VSAM3X8 p31 -S'../..' +sS'PROJECT_HW_PATH' p32 -sS'PROJECT_SRC_PATH' +S'../..' p33 -S'.' +sS'PROJECT_SRC_PATH' p34 -sS'PRESET' +S'.' p35 -I01 -sS'PROJECT_HW_PATH_FROM_MAKEFILE' +sS'PRESET' p36 -Vboards/sam3x-ek +I01 +sS'PROJECT_SRC_PATH_FROM_MAKEFILE' p37 -sS'OUTPUT' +Vboards/sam3x-ek/examples/sam3x-ek_display p38 -(lp39 +sS'OUTPUT' +p39 +(lp40 S'codelite' -p40 +p41 as. \ No newline at end of file diff --git a/boards/sam3x-ek/examples/sam3x-ek_display/sam3x-ek_display.mk b/boards/sam3x-ek/examples/sam3x-ek_display/sam3x-ek_display.mk index 8e22b906..3f9dfd51 100644 --- a/boards/sam3x-ek/examples/sam3x-ek_display/sam3x-ek_display.mk +++ b/boards/sam3x-ek/examples/sam3x-ek_display/sam3x-ek_display.mk @@ -30,11 +30,13 @@ sam3x-ek_display_WIZARD_CSRC = \ bertos/mware/sprintf.c \ bertos/gfx/line.c \ bertos/drv/lcd_hx8347.c \ + bertos/drv/adc.c \ bertos/gfx/text_format.c \ bertos/drv/kbd.c \ bertos/fonts/luBS14.c \ bertos/kern/signal.c \ bertos/kern/proc.c \ + bertos/cpu/cortex-m3/drv/adc_sam3.c \ bertos/mware/hex.c \ bertos/gui/menu.c \ # -- 2.25.1