/* Get maximum number of messages in a Message Queue.  */
uint32_t osMessageQueueGetCapacity(osMessageQueueId_t msgq_id)
/* Get maximum number of messages in a Message Queue.  */
uint32_t osMessageQueueGetCapacity(osMessageQueueId_t msgq_id)
{
	struct cv2_msgq *msgq = (struct cv2_msgq *)msgq_id;
	if (msgq == NULL) {
		return 0;
	} else {
		return msgq->z_msgq.max_msgs;
	}
}