From 80ea30964e9b10cc5db807243d724e2f6fe944e3 Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 13 May 2010 17:22:11 +0000 Subject: [PATCH] Add semaphore to benchmark test. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3701 38d2e660-2303-0410-9eaa-f027e97ec537 --- .../benchmark/kernel_footprint/cfg/cfg_sem.h | 2 +- .../kernel_footprint/kernel_footprint.mk | 7 +++-- .../benchmark/kernel_footprint/project.bertos | 30 ++++++++++--------- 3 files changed, 21 insertions(+), 18 deletions(-) diff --git a/boards/ek-lm3s1968/benchmark/kernel_footprint/cfg/cfg_sem.h b/boards/ek-lm3s1968/benchmark/kernel_footprint/cfg/cfg_sem.h index 2a6de7a9..86ed110d 100644 --- a/boards/ek-lm3s1968/benchmark/kernel_footprint/cfg/cfg_sem.h +++ b/boards/ek-lm3s1968/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/ek-lm3s1968/benchmark/kernel_footprint/kernel_footprint.mk b/boards/ek-lm3s1968/benchmark/kernel_footprint/kernel_footprint.mk index 4de3136a..ac890acc 100644 --- a/boards/ek-lm3s1968/benchmark/kernel_footprint/kernel_footprint.mk +++ b/boards/ek-lm3s1968/benchmark/kernel_footprint/kernel_footprint.mk @@ -13,19 +13,20 @@ kernel_footprint_PREFIX = "arm-none-eabi-" kernel_footprint_SUFFIX = "" -kernel_footprint_SRC_PATH = boards/ek-lm3s1968/benchmarck/kernel_footprint +kernel_footprint_SRC_PATH = boards/ek-lm3s1968/benchmark/kernel_footprint kernel_footprint_HW_PATH = boards/ek-lm3s1968 # Files automatically generated by the wizard. DO NOT EDIT, USE kernel_footprint_USER_CSRC INSTEAD! kernel_footprint_WIZARD_CSRC = \ bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c \ - bertos/kern/kfile.c \ + bertos/mware/event.c \ + bertos/kern/sem.c \ bertos/cpu/cortex-m3/drv/timer_cm3.c \ bertos/struct/heap.c \ bertos/mware/formatwr.c \ bertos/drv/timer.c \ - bertos/mware/event.c \ + bertos/kern/kfile.c \ bertos/kern/proc.c \ bertos/benchmark/kernel_footprint.c \ bertos/mware/hex.c \ diff --git a/boards/ek-lm3s1968/benchmark/kernel_footprint/project.bertos b/boards/ek-lm3s1968/benchmark/kernel_footprint/project.bertos index ff04e34d..ae53f959 100644 --- a/boards/ek-lm3s1968/benchmark/kernel_footprint/project.bertos +++ b/boards/ek-lm3s1968/benchmark/kernel_footprint/project.bertos @@ -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 -VLM3S1968 +asS'CPU_NAME' p33 -sS'PROJECT_HW_PATH' +VLM3S1968 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