diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-18 10:29:35 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2016-03-18 10:29:35 +0000 |
commit | b3fe630e4bab9a0af6f514ba086b26a1183fd333 (patch) | |
tree | 37ca76e6c31bc57d6c3e2f2e98c023142f579534 /test/nasa_osal/source | |
parent | ab961a54e0cc898315cf60d224d68b2c9547b1dc (diff) | |
download | ChibiOS-b3fe630e4bab9a0af6f514ba086b26a1183fd333.tar.gz ChibiOS-b3fe630e4bab9a0af6f514ba086b26a1183fd333.tar.bz2 ChibiOS-b3fe630e4bab9a0af6f514ba086b26a1183fd333.zip |
Mass license update.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9136 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/nasa_osal/source')
-rw-r--r-- | test/nasa_osal/source/test/test_root.c | 6 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_root.h | 18 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_001.c | 72 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_001.h | 2 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_002.c | 40 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_002.h | 2 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_003.c | 26 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_003.h | 2 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_004.c | 6 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_004.h | 2 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_005.c | 6 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_005.h | 2 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_006.c | 6 | ||||
-rw-r--r-- | test/nasa_osal/source/test/test_sequence_006.h | 2 |
14 files changed, 96 insertions, 96 deletions
diff --git a/test/nasa_osal/source/test/test_root.c b/test/nasa_osal/source/test/test_root.c index af5ff61d7..7ef9d7087 100644 --- a/test/nasa_osal/source/test/test_root.c +++ b/test/nasa_osal/source/test/test_root.c @@ -63,9 +63,9 @@ const testcase_t * const *test_suite[] = { /* Shared code. */
/*===========================================================================*/
-THD_WORKING_AREA(wa_test1, TASKS_STACK_SIZE); -THD_WORKING_AREA(wa_test2, TASKS_STACK_SIZE); -THD_WORKING_AREA(wa_test3, TASKS_STACK_SIZE); +THD_WORKING_AREA(wa_test1, TASKS_STACK_SIZE);
+THD_WORKING_AREA(wa_test2, TASKS_STACK_SIZE);
+THD_WORKING_AREA(wa_test3, TASKS_STACK_SIZE);
THD_WORKING_AREA(wa_test4, TASKS_STACK_SIZE);
/** @} */
diff --git a/test/nasa_osal/source/test/test_root.h b/test/nasa_osal/source/test/test_root.h index 53cec7c37..c8a421ce8 100644 --- a/test/nasa_osal/source/test/test_root.h +++ b/test/nasa_osal/source/test/test_root.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -49,14 +49,14 @@ extern "C" { /* Shared definitions. */
/*===========================================================================*/
-#define TEST_SUITE_NAME "NASA OSAL over ChibiOS/RT Test Suite" - -#define TASKS_BASE_PRIORITY 200 -#define TASKS_STACK_SIZE 256 - -extern THD_WORKING_AREA(wa_test1, TASKS_STACK_SIZE); -extern THD_WORKING_AREA(wa_test2, TASKS_STACK_SIZE); -extern THD_WORKING_AREA(wa_test3, TASKS_STACK_SIZE); +#define TEST_SUITE_NAME "NASA OSAL over ChibiOS/RT Test Suite"
+
+#define TASKS_BASE_PRIORITY 200
+#define TASKS_STACK_SIZE 256
+
+extern THD_WORKING_AREA(wa_test1, TASKS_STACK_SIZE);
+extern THD_WORKING_AREA(wa_test2, TASKS_STACK_SIZE);
+extern THD_WORKING_AREA(wa_test3, TASKS_STACK_SIZE);
extern THD_WORKING_AREA(wa_test4, TASKS_STACK_SIZE);
#endif /* _SPC5_TEST_ROOT_H_ */
diff --git a/test/nasa_osal/source/test/test_sequence_001.c b/test/nasa_osal/source/test/test_sequence_001.c index 1574b5206..2e176b984 100644 --- a/test/nasa_osal/source/test/test_sequence_001.c +++ b/test/nasa_osal/source/test/test_sequence_001.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -39,41 +39,41 @@ * Shared code.
****************************************************************************/
-#include "osapi.h" - -static void test_task1(void) { - - test_emit_token('A'); -} - -static void test_task2(void) { - - test_emit_token('B'); -} - -static void test_task3(void) { - - test_emit_token('C'); -} - -static void test_task4(void) { - - test_emit_token('D'); -} - -static void delete_handler(void) { - - test_emit_token('C'); -} - -static void test_task_delete(void) { - - test_emit_token('A'); - (void) OS_TaskInstallDeleteHandler(delete_handler); - while (!OS_TaskDeleteCheck()) { - (void) OS_TaskDelay(1); - } - test_emit_token('B'); +#include "osapi.h"
+
+static void test_task1(void) {
+
+ test_emit_token('A');
+}
+
+static void test_task2(void) {
+
+ test_emit_token('B');
+}
+
+static void test_task3(void) {
+
+ test_emit_token('C');
+}
+
+static void test_task4(void) {
+
+ test_emit_token('D');
+}
+
+static void delete_handler(void) {
+
+ test_emit_token('C');
+}
+
+static void test_task_delete(void) {
+
+ test_emit_token('A');
+ (void) OS_TaskInstallDeleteHandler(delete_handler);
+ while (!OS_TaskDeleteCheck()) {
+ (void) OS_TaskDelay(1);
+ }
+ test_emit_token('B');
}
/****************************************************************************
diff --git a/test/nasa_osal/source/test/test_sequence_001.h b/test/nasa_osal/source/test/test_sequence_001.h index 83ef96518..9ba5dc4be 100644 --- a/test/nasa_osal/source/test/test_sequence_001.h +++ b/test/nasa_osal/source/test/test_sequence_001.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nasa_osal/source/test/test_sequence_002.c b/test/nasa_osal/source/test/test_sequence_002.c index bffdfe85b..1332af727 100644 --- a/test/nasa_osal/source/test/test_sequence_002.c +++ b/test/nasa_osal/source/test/test_sequence_002.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -39,25 +39,25 @@ * Shared code.
****************************************************************************/
-#include <string.h> - -#include "osapi.h" - -uint32 qid, tid; - -#define WRITER_NUM_MESSAGES 16 -#define MESSAGE_SIZE 20 - -static void test_task_writer(void) { - unsigned i; - int32 err; - - for (i = 0; i < WRITER_NUM_MESSAGES; i++) { - err = OS_QueuePut(qid, "Hello World", 12, 0); - if (err != OS_SUCCESS) { - test_emit_token('*'); - } - } +#include <string.h>
+
+#include "osapi.h"
+
+uint32 qid, tid;
+
+#define WRITER_NUM_MESSAGES 16
+#define MESSAGE_SIZE 20
+
+static void test_task_writer(void) {
+ unsigned i;
+ int32 err;
+
+ for (i = 0; i < WRITER_NUM_MESSAGES; i++) {
+ err = OS_QueuePut(qid, "Hello World", 12, 0);
+ if (err != OS_SUCCESS) {
+ test_emit_token('*');
+ }
+ }
}
/****************************************************************************
diff --git a/test/nasa_osal/source/test/test_sequence_002.h b/test/nasa_osal/source/test/test_sequence_002.h index bd7b6c764..b408f96f4 100644 --- a/test/nasa_osal/source/test/test_sequence_002.h +++ b/test/nasa_osal/source/test/test_sequence_002.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nasa_osal/source/test/test_sequence_003.c b/test/nasa_osal/source/test/test_sequence_003.c index 1dd7a44b5..b42f4de9d 100644 --- a/test/nasa_osal/source/test/test_sequence_003.c +++ b/test/nasa_osal/source/test/test_sequence_003.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -40,18 +40,18 @@ * Shared code.
****************************************************************************/
-#include <string.h> - -#include "osapi.h" - -uint32 tmid; -uint32 cnt; - -static void tmr_callback(uint32 timer_id) { - - (void)timer_id; - - cnt++; +#include <string.h>
+
+#include "osapi.h"
+
+uint32 tmid;
+uint32 cnt;
+
+static void tmr_callback(uint32 timer_id) {
+
+ (void)timer_id;
+
+ cnt++;
}
/****************************************************************************
diff --git a/test/nasa_osal/source/test/test_sequence_003.h b/test/nasa_osal/source/test/test_sequence_003.h index 587acc5de..ca7045528 100644 --- a/test/nasa_osal/source/test/test_sequence_003.h +++ b/test/nasa_osal/source/test/test_sequence_003.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nasa_osal/source/test/test_sequence_004.c b/test/nasa_osal/source/test/test_sequence_004.c index 908a0861b..4e4bb977b 100644 --- a/test/nasa_osal/source/test/test_sequence_004.c +++ b/test/nasa_osal/source/test/test_sequence_004.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -42,8 +42,8 @@ * Shared code.
****************************************************************************/
-#include "osapi.h" - +#include "osapi.h"
+
uint32 bsid;
/****************************************************************************
diff --git a/test/nasa_osal/source/test/test_sequence_004.h b/test/nasa_osal/source/test/test_sequence_004.h index 3ecaa4259..4e0e48f6a 100644 --- a/test/nasa_osal/source/test/test_sequence_004.h +++ b/test/nasa_osal/source/test/test_sequence_004.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nasa_osal/source/test/test_sequence_005.c b/test/nasa_osal/source/test/test_sequence_005.c index 3072c1666..cbbb8e0fa 100644 --- a/test/nasa_osal/source/test/test_sequence_005.c +++ b/test/nasa_osal/source/test/test_sequence_005.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -41,8 +41,8 @@ * Shared code.
****************************************************************************/
-#include "osapi.h" - +#include "osapi.h"
+
uint32 csid;
/****************************************************************************
diff --git a/test/nasa_osal/source/test/test_sequence_005.h b/test/nasa_osal/source/test/test_sequence_005.h index 4cb8e1db0..a6d54f033 100644 --- a/test/nasa_osal/source/test/test_sequence_005.h +++ b/test/nasa_osal/source/test/test_sequence_005.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/test/nasa_osal/source/test/test_sequence_006.c b/test/nasa_osal/source/test/test_sequence_006.c index 6e61ffc73..2ea972091 100644 --- a/test/nasa_osal/source/test/test_sequence_006.c +++ b/test/nasa_osal/source/test/test_sequence_006.c @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -39,8 +39,8 @@ * Shared code.
****************************************************************************/
-#include "osapi.h" - +#include "osapi.h"
+
uint32 msid;
/****************************************************************************
diff --git a/test/nasa_osal/source/test/test_sequence_006.h b/test/nasa_osal/source/test/test_sequence_006.h index 739ecb3f3..efa716bdd 100644 --- a/test/nasa_osal/source/test/test_sequence_006.h +++ b/test/nasa_osal/source/test/test_sequence_006.h @@ -1,5 +1,5 @@ /*
- ChibiOS - Copyright (C) 2006..2015 Giovanni Di Sirio
+ ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
|