why rtems_message_queue_create hang up the system?
Yanjun Luo
yjluo at panjet.net
Fri Sep 17 03:25:17 UTC 2004
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.
More information about the users
mailing list