Fixed formatting error I introduced

This commit is contained in:
David Sidrane 2020-03-10 10:30:24 -07:00 committed by Xiang Xiao
parent 0db4529d8b
commit 0817ffbc54

View File

@ -49,13 +49,13 @@
/* This defines the number of messages descriptors to allocate at each /* This defines the number of messages descriptors to allocate at each
* "gulp." * "gulp."
**/ */
#define NUM_MSG_DESCRIPTORS 24 #define NUM_MSG_DESCRIPTORS 24
/* This defines the number of messages to set aside for exclusive use by /* This defines the number of messages to set aside for exclusive use by
* interrupt handlers * interrupt handlers
**/ */
#define NUM_INTERRUPT_MSGS 8 #define NUM_INTERRUPT_MSGS 8
@ -65,24 +65,24 @@
enum mqalloc_e enum mqalloc_e
{ {
MQ_ALLOC_FIXED = 0, /* Pre-allocated; never freed **/ MQ_ALLOC_FIXED = 0, /* Pre-allocated; never freed */
MQ_ALLOC_DYN, /* Dynamically allocated; free when unused **/ MQ_ALLOC_DYN, /* Dynamically allocated; free when unused */
MQ_ALLOC_IRQ /* Preallocated, reserved for interrupt handling **/ MQ_ALLOC_IRQ /* Preallocated, reserved for interrupt handling */
}; };
/* This structure describes one buffered POSIX message. **/ /* This structure describes one buffered POSIX message. */
struct mqueue_msg_s struct mqueue_msg_s
{ {
FAR struct mqueue_msg_s *next; /* Forward link to next message **/ FAR struct mqueue_msg_s *next; /* Forward link to next message */
uint8_t type; /* (Used to manage allocations) **/ uint8_t type; /* (Used to manage allocations) */
uint8_t priority; /* priority of message **/ uint8_t priority; /* priority of message */
#if MQ_MAX_BYTES < 256 #if MQ_MAX_BYTES < 256
uint8_t msglen; /* Message data length **/ uint8_t msglen; /* Message data length */
#else #else
uint16_t msglen; /* Message data length **/ uint16_t msglen; /* Message data length */
#endif #endif
char mail[MQ_MAX_BYTES]; /* Message data **/ char mail[MQ_MAX_BYTES]; /* Message data */
}; };
/******************************************************************************** /********************************************************************************
@ -99,20 +99,20 @@ extern "C"
/* The g_msgfree is a list of messages that are available for general use. /* The g_msgfree is a list of messages that are available for general use.
* The number of messages in this list is a system configuration item. * The number of messages in this list is a system configuration item.
**/ */
EXTERN sq_queue_t g_msgfree; EXTERN sq_queue_t g_msgfree;
/* The g_msgfreeInt is a list of messages that are reserved for use by /* The g_msgfreeInt is a list of messages that are reserved for use by
* interrupt handlers. * interrupt handlers.
**/ */
EXTERN sq_queue_t g_msgfreeirq; EXTERN sq_queue_t g_msgfreeirq;
/* The g_desfree data structure is a list of message descriptors available /* The g_desfree data structure is a list of message descriptors available
* to the operating system for general use. The number of messages in the * to the operating system for general use. The number of messages in the
* pool is a constant. * pool is a constant.
**/ */
EXTERN sq_queue_t g_desfree; EXTERN sq_queue_t g_desfree;
@ -120,8 +120,8 @@ EXTERN sq_queue_t g_desfree;
* Public Function Prototypes * Public Function Prototypes
********************************************************************************/ ********************************************************************************/
struct tcb_s; /* Forward reference **/ struct tcb_s; /* Forward reference */
struct task_group_s; /* Forward reference **/ struct task_group_s; /* Forward reference */
/* Functions defined in mq_initialize.c *****************************************/ /* Functions defined in mq_initialize.c *****************************************/
@ -162,5 +162,5 @@ void nxmq_recover(FAR struct tcb_s *tcb);
} }
#endif #endif
#endif /* CONFIG_MQ_MAXMSGSIZE > 0 **/ #endif /* CONFIG_MQ_MAXMSGSIZE > 0 */
#endif /* __SCHED_MQUEUE_MQUEUE_H **/ #endif /* __SCHED_MQUEUE_MQUEUE_H */