From bbd05abbfb5ad66f503f7f82c1f0a63c4fefd603 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 13 May 2010 17:15:48 +0000 Subject: [PATCH] Add semaphore to benchmark test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3700 38d2e660-2303-0410-9eaa-f027e97ec537 --- .../benchmark/kernel_footprint/cfg/cfg_sem.h | 2 +- .../kernel_footprint/kernel_footprint.mk | 1 + .../benchmark/kernel_footprint/project.bertos | 36 ++++++++++--------- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/boards/triface/benchmark/kernel_footprint/cfg/cfg_sem.h b/boards/triface/benchmark/kernel_footprint/cfg/cfg_sem.h index 2a6de7a9..86ed110d 100644 --- a/boards/triface/benchmark/kernel_footprint/cfg/cfg_sem.h +++ b/boards/triface/benchmark/kernel_footprint/cfg/cfg_sem.h @@ -43,6 +43,6 @@ * Re-entrant mutual exclusion primitives. * $WIZ$ type = "autoenabled" */ -#define CONFIG_KERN_SEMAPHORES 0 +#define CONFIG_KERN_SEMAPHORES 1 #endif /* CFG_SEM_H */ diff --git a/boards/triface/benchmark/kernel_footprint/kernel_footprint.mk b/boards/triface/benchmark/kernel_footprint/kernel_footprint.mk index bd4f6458..4ab89f76 100644 --- a/boards/triface/benchmark/kernel_footprint/kernel_footprint.mk +++ b/boards/triface/benchmark/kernel_footprint/kernel_footprint.mk @@ -21,6 +21,7 @@ kernel_footprint_HW_PATH = boards/triface kernel_footprint_WIZARD_CSRC = \ bertos/kern/signal.c \ bertos/kern/kfile.c \ + bertos/kern/sem.c \ bertos/struct/heap.c \ bertos/mware/formatwr.c \ bertos/cpu/avr/drv/timer_avr.c \ diff --git a/boards/triface/benchmark/kernel_footprint/project.bertos b/boards/triface/benchmark/kernel_footprint/project.bertos index 29cea7a7..970e6e2b 100644 --- a/boards/triface/benchmark/kernel_footprint/project.bertos +++ b/boards/triface/benchmark/kernel_footprint/project.bertos @@ -27,15 +27,15 @@ Vsingle p13 sVconfigured p14 -V../configure --prefix=/usr/local/avr-4.1.2 --target=avr --enable-languages=c --disable-nls --disable-libssp --with-dwarf2 +V../configure --prefix=/usr/local/avr-4.3.2/ --target=avr --enable-languages=c,c++ --disable-nls --disable-libssp --with-dwarf2 p15 sVversion p16 -V4.1.2 +V4.3.2 p17 sVbuild p18 -VDeveler s.r.l. 20070824 +VGCC p19 sVpath p20 @@ -50,32 +50,34 @@ aS'formatwr' p25 aS'kfile' p26 -aS'msg' +aS'semaphores' p27 -aS'kernel_footprint' +aS'msg' p28 -aS'heap' +aS'kernel_footprint' p29 -aS'signal' +aS'heap' p30 -aS'timer' +aS'signal' p31 -asS'CPU_NAME' +aS'timer' p32 -VATmega1281 +asS'CPU_NAME' p33 -sS'PROJECT_HW_PATH' +VATmega1281 p34 -S'../..' +sS'PROJECT_HW_PATH' p35 -sS'PROJECT_SRC_PATH' +S'../..' p36 -S'.' +sS'PROJECT_SRC_PATH' p37 -sS'PRESET' +S'.' p38 +sS'PRESET' +p39 I01 sS'OUTPUT' -p39 -(lp40 +p40 +(lp41 s. \ No newline at end of file -- 2.25.1