Message queues in GeMRTOS #
Message queue related functions #
Creating and initializing a Message queue #
The first step is to create a message queue resource using:
The message queue is created and initilized with the following paramenters:
Subscribing to a Message queue resource #
A consumer task should be subscribed to a message resource prior to receiving messages with the following function:
A message queue is subscribed with the following parameters:
Printing formatted messages to a Message queue resource #
A producer task sends formatted messages with the following function:
A message is printed with the following parameters:
Sending messages to a Message queue resource #
A producer task sends messages with the following function:
A message is sent with the following parameters:
Receiving messages from a Message queue resource #
A consumer task receives messages from a previously subscribed message queue resource with the following function:
A message is sent with the following parameters: