From 7b51712449ffa10f260f60e6968257230fe63f15 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 9 Aug 2013 13:43:56 +0000 Subject: Updated queues. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6112 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- test/testbmk.c | 2 +- test/testqueues.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'test') diff --git a/test/testbmk.c b/test/testbmk.c index 0dadc7652..372e2a669 100644 --- a/test/testbmk.c +++ b/test/testbmk.c @@ -671,7 +671,7 @@ static void bmk13_execute(void) { #endif #if CH_CFG_USE_QUEUES || defined(__DOXYGEN__) test_print("--- Queue : "); - test_printn(sizeof(GenericQueue)); + test_printn(sizeof(io_queue_t)); test_println(" bytes"); #endif #if CH_CFG_USE_MAILBOXES || defined(__DOXYGEN__) diff --git a/test/testqueues.c b/test/testqueues.c index d19ca5e00..6ef057f3a 100644 --- a/test/testqueues.c +++ b/test/testqueues.c @@ -54,7 +54,7 @@ #define TEST_QUEUES_SIZE 4 -static void notify(GenericQueue *qp) { +static void notify(io_queue_t *qp) { (void)qp; } @@ -77,7 +77,7 @@ static OUTPUTQUEUE_DECL(oq, test.wa.T1, TEST_QUEUES_SIZE, notify, NULL); static void queues1_setup(void) { - chIQInit(&iq, wa[0], TEST_QUEUES_SIZE, notify, NULL); + chIQObjectInit(&iq, wa[0], TEST_QUEUES_SIZE, notify, NULL); } static msg_t thread1(void *p) { @@ -164,7 +164,7 @@ ROMCONST struct testcase testqueues1 = { static void queues2_setup(void) { - chOQInit(&oq, wa[0], TEST_QUEUES_SIZE, notify, NULL); + chOQObjectInit(&oq, wa[0], TEST_QUEUES_SIZE, notify, NULL); } static msg_t thread2(void *p) { -- cgit v1.2.3