From c64879e277eb12f6e22fee612274d3783424c58f Mon Sep 17 00:00:00 2001 From: asterix Date: Thu, 18 Dec 2008 17:29:03 +0000 Subject: [PATCH] Pastos. Change global settings to complete test in correct time. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2089 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/sem_test.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/bertos/kern/sem_test.c b/bertos/kern/sem_test.c index b2031b3b..354277fc 100644 --- a/bertos/kern/sem_test.c +++ b/bertos/kern/sem_test.c @@ -49,8 +49,8 @@ // Global settings for the test. #define MAX_GLOBAL_COUNT 1024 -#define TEST_TIME_OUT_MS 4000 -#define DELAY 10 +#define TEST_TIME_OUT_MS 6000 +#define DELAY 5 // Settings for the test process. //Process 1 @@ -64,26 +64,25 @@ #define DELAY_PROC_T3 INC_PROC_T3*DELAY //Process 4 #define INC_PROC_T4 7 -#define DELAY_PROC_T4 INC_PROC_T3*DELAY +#define DELAY_PROC_T4 INC_PROC_T4*DELAY //Process 5 #define INC_PROC_T5 11 -#define DELAY_PROC_T5 INC_PROC_T3*DELAY +#define DELAY_PROC_T5 INC_PROC_T5*DELAY //Process 6 #define INC_PROC_T6 13 -#define DELAY_PROC_T6 INC_PROC_T3*DELAY +#define DELAY_PROC_T6 INC_PROC_T6*DELAY //Process 7 #define INC_PROC_T7 17 -#define DELAY_PROC_T7 INC_PROC_T3*DELAY +#define DELAY_PROC_T7 INC_PROC_T7*DELAY //Process 8 #define INC_PROC_T8 19 -#define DELAY_PROC_T8 INC_PROC_T3*DELAY +#define DELAY_PROC_T8 INC_PROC_T8*DELAY Semaphore sem; unsigned int global_count = 0; /* - * These macro generate the code that needed to create the - * test process function and all it needed. + * These macros generate the code needed to create the test process functions. */ #define PROC_TEST(num) static void proc_test##num(void) \ { \ -- 2.25.1