Cmsis-rtos v1.02 does not support mail Queue?

Source: Internet
Author: User

STM32CUBEMX supports FreeRTOS by default.

/* User code BEGIN Variables */osmailqdef (mail, 6, uint8_t);/* User code END Variables */

The Cmsis-rtos document has a description of the message queue management, which, by definition, always has an error:


.. \SRC\FREERTOS.C (*): Error: #151: A typedef name is redeclared as a parameter
Osmailqdef (mail, 6, uint8_t);
.. \SRC\FREERTOS.C: Error: #260-D: Explicit type is missing ("int" assumed)
Osmailqdef (mail, 6, uint8_t);
.. \SRC\FREERTOS.C (as of): Error: #92: identifier-list parameters May is used in a function definition
Osmailqdef (mail, 6, uint8_t);


Flip through FreeRTOS's documentation to see if it doesn't explicitly support mailbox.

Looking at Cmsis.h, we find that the macro definition has an IF condition:

#if 0/* Mail Queue Management Functions is not supported in this Cmsis_os version, 'll be added in the next release
   
    */
   

It is well written that the current version does not support mail queue management.

But at the head of the file there are:

#define OSFEATURE_MAILQ        1       ///< Mail Queues:     1=available, 0=not available
Inconsistencies.

In addition, here the macro is a statement of multiple statements, dropped a '; '.

struct OS_MAILQ_CB *os_mailq_cb_# #name; \


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Cmsis-rtos v1.02 does not support mail Queue?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.