From: asterix Date: Thu, 8 Jan 2009 14:14:28 +0000 (+0000) Subject: Clean up whitespace. X-Git-Tag: 2.1.0~545 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=d5403b5adfbe4ef86d77498932bbf514143bb842;p=bertos.git Clean up whitespace. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2137 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/sem_test.c b/bertos/kern/sem_test.c index b6428c1b..1caf30ef 100644 --- a/bertos/kern/sem_test.c +++ b/bertos/kern/sem_test.c @@ -32,10 +32,10 @@ * \brief Semaphore test. * * \version $Id$ - * + * * \author Daniele Basile - * \author Stefano Fedrigo - * + * \author Stefano Fedrigo + * */ #include @@ -83,7 +83,7 @@ unsigned int global_count = 0; /* * These macros generate the code needed to create the test process functions. - */ + */ #define PROC_TEST(num) static void proc_test##num(void) \ { \ unsigned int local_count = 0; \ @@ -134,7 +134,7 @@ int sem_testRun(void) ticks_t start_time = timer_clock(); kprintf("Run semaphore test..\n"); - + //Init the process tests PROC_TEST_INIT(1) PROC_TEST_INIT(2) @@ -145,11 +145,11 @@ int sem_testRun(void) PROC_TEST_INIT(7) PROC_TEST_INIT(8) kputs("> Main: Processes created\n"); - + /* - * Wait until all processes exit, if something goes wrong we return an + * Wait until all processes exit, if something goes wrong we return an * error after timeout_ms. - */ + */ while((timer_clock() - start_time) < ms_to_ticks(TEST_TIME_OUT_MS)) { if (sem_attempt(&sem)) @@ -165,7 +165,7 @@ int sem_testRun(void) } proc_yield(); } - + kputs("Semaphore Test fail..\n"); return -1; } @@ -177,7 +177,7 @@ int sem_testSetup(void) kprintf("Init Semaphore.."); sem_init(&sem); kprintf("Done.\n"); - + #if CONFIG_KERN_PREEMPT kprintf("Init Interrupt (preempt mode).."); irq_init(); @@ -187,11 +187,11 @@ int sem_testSetup(void) kprintf("Init Timer.."); timer_init(); kprintf("Done.\n"); - + kprintf("Init Process.."); proc_init(); kprintf("Done.\n"); - + return 0; } @@ -201,4 +201,4 @@ int sem_testTearDown(void) return 0; } -TEST_MAIN(sem); \ No newline at end of file +TEST_MAIN(sem); diff --git a/bertos/kern/signal_test.c b/bertos/kern/signal_test.c index a0fc610b..ca63002b 100644 --- a/bertos/kern/signal_test.c +++ b/bertos/kern/signal_test.c @@ -31,9 +31,9 @@ * --> * * \brief Signals test. - * + * * \version $Id$ - * + * * \author Daniele Basile */ @@ -56,7 +56,7 @@ int test_signal[] = { SIG_TIMEOUT, SIG_SYSTEM5, SIG_SYSTEM6, - SIG_SINGLE + SIG_SINGLE }; // Current signal to send @@ -67,7 +67,7 @@ sigmask_t sig_to_slave; /* * These macros generate the code needed to create the test process functions. - */ + */ #define PROC_TEST_SLAVE(index, signal) static void proc_test##index(void) \ { \ for(;;) \ @@ -143,13 +143,13 @@ int signal_testRun(void) MAIN_CHECK_SIGNAL(5, slave_5); MAIN_CHECK_SIGNAL(6, slave_6); MAIN_CHECK_SIGNAL(7, slave_7); - + if(count == countof(test_signal)) { kprintf("Signal test finished..ok!\n"); return 0; } - + kprintf("Signal test finished..fail!\n"); return -1; } @@ -167,7 +167,7 @@ int signal_testSetup(void) kprintf("Init Timer.."); timer_init(); kprintf("Done.\n"); - + kprintf("Init Process.."); proc_init(); kprintf("Done.\n"); @@ -180,4 +180,4 @@ int signal_testTearDown(void) return 0; } -TEST_MAIN(signal); \ No newline at end of file +TEST_MAIN(signal);