aboutsummaryrefslogtreecommitdiffstats
path: root/test/nasa_osal/source
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-03-10 15:34:02 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-03-10 15:34:02 +0000
commit55d20075bd0f66b24292cb229be355a2369a9a61 (patch)
tree1b6d3e8aa2d735420bd620dfb87928b9c3bdb862 /test/nasa_osal/source
parentade53fbc15fcf754ccb29e90f19cb2f921a90288 (diff)
downloadChibiOS-55d20075bd0f66b24292cb229be355a2369a9a61.tar.gz
ChibiOS-55d20075bd0f66b24292cb229be355a2369a9a61.tar.bz2
ChibiOS-55d20075bd0f66b24292cb229be355a2369a9a61.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9066 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/nasa_osal/source')
-rw-r--r--test/nasa_osal/source/test/test_sequence_003.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/nasa_osal/source/test/test_sequence_003.c b/test/nasa_osal/source/test/test_sequence_003.c
index 2d2fc0a69..1dd7a44b5 100644
--- a/test/nasa_osal/source/test/test_sequence_003.c
+++ b/test/nasa_osal/source/test/test_sequence_003.c
@@ -173,16 +173,17 @@ static void test_003_001_execute(void) {
test_set_step(7);
{
int32 err;
- uint32 qid1, qid2;
+ uint32 tmid1, tmid2;
+ uint32 accuracy;
- err = OS_QueueCreate(&qid1, "my queue", 4, 128, 0);
- test_assert(err == OS_SUCCESS, "queue creation failed");
+ err = OS_TimerCreate(&tmid1, "my timer", &accuracy, tmr_callback);
+ test_assert(err == OS_SUCCESS, "timer creation failed");
- err = OS_QueueCreate(&qid2, "my queue", 4, 128, 0);
+ err = OS_TimerCreate(&tmid2, "my timer", &accuracy, tmr_callback);
test_assert(err == OS_ERR_NAME_TAKEN, "name conflict not detected");
- err = OS_QueueDelete(qid1);
- test_assert(err == OS_SUCCESS, "queue deletion failed");
+ err = OS_TimerDelete(tmid1);
+ test_assert(err == OS_SUCCESS, "timer deletion failed");
}
}