[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
why rtems_message_queue_create hang up the system?
- Date: Fri, 17 Sep 2004 11:25:17 +0800
- From: yjluo at panjet.net (Yanjun Luo)
- Subject: why rtems_message_queue_create hang up the system?
Hi,
I just use message queue in my 9200 board, find that if I call
rtems_message_queue_create, it doesn't return, and I can't see
any error. What's wrong with it?
in system.h:
------------------------------------------------------------------
#define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 10
extern rtems_id Queue_id[ 10 ]; /* array of queue ids */
extern rtems_name Queue_name[ 10 ]; /* array of queue names */
#define PRINT_MAX_MESSAGE_COUNT 20
#define PRINT_MAX_MESSAGE_SIZE 100
in init.c
-----------------------------------------------------------------
Queue_name[ 1 ] = rtems_build_name( 'P', 'I', 'N', 'T' );
status = rtems_message_queue_create(
Queue_name[ 1 ],
PRINT_MAX_MESSAGE_COUNT,
PRINT_MAX_MESSAGE_SIZE,
RTEMS_DEFAULT_ATTRIBUTES,
&Queue_id[ 1 ]
);
It never come here.
Thanks,
Yanjun Luo.