summaryrefslogtreecommitdiff
path: root/nuttx/sched/mq_internal.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 18:39:29 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 18:39:29 +0000
commit59f367c060c408a9c9f2ee6db3a4fd498c4a2724 (patch)
tree80d034ca2b741e6d5b074758c5285f804f772c66 /nuttx/sched/mq_internal.h
parent24bdea23f746984480bd59dd13dd4d631a210320 (diff)
downloadpx4-nuttx-59f367c060c408a9c9f2ee6db3a4fd498c4a2724.tar.gz
px4-nuttx-59f367c060c408a9c9f2ee6db3a4fd498c4a2724.tar.bz2
px4-nuttx-59f367c060c408a9c9f2ee6db3a4fd498c4a2724.zip
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2336 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched/mq_internal.h')
-rw-r--r--nuttx/sched/mq_internal.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/nuttx/sched/mq_internal.h b/nuttx/sched/mq_internal.h
index 554b59884..e5dc3ea3f 100644
--- a/nuttx/sched/mq_internal.h
+++ b/nuttx/sched/mq_internal.h
@@ -90,14 +90,14 @@ typedef enum mqalloc_e mqalloc_t;
struct mqmsg
{
FAR struct mqmsg *next; /* Forward link to next message */
- ubyte type; /* (Used to manage allocations) */
- ubyte priority; /* priority of message */
+ uint8_t type; /* (Used to manage allocations) */
+ uint8_t priority; /* priority of message */
#if MQ_MAX_BYTES < 256
- ubyte msglen; /* Message data length */
+ uint8_t msglen; /* Message data length */
#else
- uint16 msglen; /* Message data length */
+ uint16_t msglen; /* Message data length */
#endif
- ubyte mail[MQ_MAX_BYTES]; /* Message data */
+ uint8_t mail[MQ_MAX_BYTES]; /* Message data */
};
typedef struct mqmsg mqmsg_t;
@@ -109,12 +109,12 @@ struct msgq_s
{
FAR struct msgq_s *flink; /* Forward link to next message queue */
sq_queue_t msglist; /* Prioritized message list */
- sint16 maxmsgs; /* Maximum number of messages in the queue */
- sint16 nmsgs; /* Number of message in the queue */
- sint16 nconnect; /* Number of connections to message queue */
- sint16 nwaitnotfull; /* Number tasks waiting for not full */
- sint16 nwaitnotempty; /* Number tasks waiting for not empty */
- ubyte maxmsgsize; /* Max size of message in message queue */
+ int16_t maxmsgs; /* Maximum number of messages in the queue */
+ int16_t nmsgs; /* Number of message in the queue */
+ int16_t nconnect; /* Number of connections to message queue */
+ int16_t nwaitnotfull; /* Number tasks waiting for not full */
+ int16_t nwaitnotempty; /* Number tasks waiting for not empty */
+ uint8_t maxmsgsize; /* Max size of message in message queue */
boolean unlinked; /* TRUE if the msg queue has been unlinked */
#ifndef CONFIG_DISABLE_SIGNALS
FAR struct mq_des *ntmqdes; /* Notification: Owning mqdes (NULL if none) */