ABSTRACT

To enable µC/OS-II message-mailbox services, you must set configuration constants in OS_CFG.H. Specifically, Table 10.1 shows which services are compiled, based on the value of configuration constants found in OS_CFG.H. You should note that none of the mailbox services are enabled when OS_MBOX_EN is set to 0. To enable specific features (i.e., services) listed in Table 10.1, simply set the configuration constant to 1. You should notice that OSMboxCreate() and OSMboxPend() cannot be individually disabled like the other services. That’s because they are always needed when you enable µC/OS-II message mailbox management. You must enable at least one of the post services: OSMboxPost() and OSMboxPostOpt().