diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-12-13 15:52:00 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-12-13 15:52:00 +0000 |
commit | 600a241e3bb0d0c47fd5abe7db3d33fa4a4c7b86 (patch) | |
tree | b58bd3bad52aba4bf45b709ab00c3bba9b6be767 /c/src/librtems++/include | |
parent | 2006-12-13 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-600a241e3bb0d0c47fd5abe7db3d33fa4a4c7b86.tar.bz2 |
2006-12-13 Joel Sherrill <joel@OARcorp.com>
* librtems++/include/rtems++/rtemsEvent.h,
librtems++/include/rtems++/rtemsMessageQueue.h,
librtems++/include/rtems++/rtemsSemaphore.h,
librtems++/include/rtems++/rtemsTask.h, librtems++/src/rtemsEvent.cc,
librtems++/src/rtemsMessageQueue.cc,
librtems++/src/rtemsSemaphore.cc, librtems++/src/rtemsTask.cc: Change
rtems_unsigned32 to uint32_t.
Diffstat (limited to 'c/src/librtems++/include')
-rw-r--r-- | c/src/librtems++/include/rtems++/rtemsEvent.h | 4 | ||||
-rw-r--r-- | c/src/librtems++/include/rtems++/rtemsMessageQueue.h | 36 | ||||
-rw-r--r-- | c/src/librtems++/include/rtems++/rtemsSemaphore.h | 12 | ||||
-rw-r--r-- | c/src/librtems++/include/rtems++/rtemsTask.h | 16 |
4 files changed, 34 insertions, 34 deletions
diff --git a/c/src/librtems++/include/rtems++/rtemsEvent.h b/c/src/librtems++/include/rtems++/rtemsEvent.h index da1b6851f3..ea41d4919e 100644 --- a/c/src/librtems++/include/rtems++/rtemsEvent.h +++ b/c/src/librtems++/include/rtems++/rtemsEvent.h @@ -43,7 +43,7 @@ public: // only the first 4 characters of the name are taken // connect to a task - rtemsEvent(const char* name, rtems_unsigned32 node = RTEMS_SEARCH_ALL_NODES); + rtemsEvent(const char* name, uint32_t node = RTEMS_SEARCH_ALL_NODES); // copy and default constructors rtemsEvent(const rtemsEvent& event); @@ -54,7 +54,7 @@ public: // connect to an existing task object, will not be the owner const rtemsEvent& operator=(const rtemsEvent& event); virtual const rtems_status_code connect(const char *name, - const rtems_unsigned32 node = RTEMS_SEARCH_ALL_NODES); + const uint32_t node = RTEMS_SEARCH_ALL_NODES); // send an event inline const rtems_status_code send(const rtems_id task, diff --git a/c/src/librtems++/include/rtems++/rtemsMessageQueue.h b/c/src/librtems++/include/rtems++/rtemsMessageQueue.h index 9c899ee655..704b0c657f 100644 --- a/c/src/librtems++/include/rtems++/rtemsMessageQueue.h +++ b/c/src/librtems++/include/rtems++/rtemsMessageQueue.h @@ -59,13 +59,13 @@ public: // creates a message queue rtemsMessageQueue(const char* name, - const rtems_unsigned32 count, - const rtems_unsigned32 max_message_size, + const uint32_t count, + const uint32_t max_message_size, const WaitMode wait_mode = wait_by_fifo, const Scope scope = local); // connects to a message queue - rtemsMessageQueue(const char *name, const rtems_unsigned32 node = RTEMS_SEARCH_ALL_NODES); + rtemsMessageQueue(const char *name, const uint32_t node = RTEMS_SEARCH_ALL_NODES); // copy and default constructors rtemsMessageQueue(const rtemsMessageQueue& message_queue); @@ -76,8 +76,8 @@ public: // create or destroy (delete) the message queue virtual const rtems_status_code create(const char* name, - const rtems_unsigned32 count, - const rtems_unsigned32 max_message_size, + const uint32_t count, + const uint32_t max_message_size, const WaitMode wait_mode = wait_by_fifo, const Scope scope = local); virtual const rtems_status_code destroy(); @@ -85,25 +85,25 @@ public: // connect to an existing message queue object, will not be the owner const rtemsMessageQueue& operator=(const rtemsMessageQueue& message_queue); virtual const rtems_status_code connect(const char *name, - const rtems_unsigned32 node = RTEMS_SEARCH_ALL_NODES); + const uint32_t node = RTEMS_SEARCH_ALL_NODES); // send a message of size from the buffer inline const rtems_status_code send(const void *buffer, - const rtems_unsigned32 size); + const uint32_t size); inline const rtems_status_code urgent(const void *buffer, - const rtems_unsigned32 size); + const uint32_t size); inline const rtems_status_code broadcast(const void *buffer, - const rtems_unsigned32 size, - rtems_unsigned32& count); + const uint32_t size, + uint32_t& count); // receive a message of size, the timeout is in micro-secs inline const rtems_status_code receive(const void *buffer, - rtems_unsigned32& size, + uint32_t& size, rtems_interval micro_secs = RTEMS_NO_TIMEOUT, bool wait = true); // flush a message queue, returning the number of messages dropped - inline const rtems_status_code flush(rtems_unsigned32& size); + inline const rtems_status_code flush(uint32_t& size); // object id, and name const rtems_id id_is() const { return id; } @@ -128,20 +128,20 @@ private: }; const rtems_status_code rtemsMessageQueue::send(const void *buffer, - const rtems_unsigned32 size) + const uint32_t size) { return set_status_code(rtems_message_queue_send(id, (void*) buffer, size)); } const rtems_status_code rtemsMessageQueue::urgent(const void *buffer, - const rtems_unsigned32 size) + const uint32_t size) { return set_status_code(rtems_message_queue_urgent(id, (void*) buffer, size)); } const rtems_status_code rtemsMessageQueue::broadcast(const void *buffer, - const rtems_unsigned32 size, - rtems_unsigned32& count) + const uint32_t size, + uint32_t& count) { return set_status_code(rtems_message_queue_broadcast(id, (void*) buffer, @@ -150,7 +150,7 @@ const rtems_status_code rtemsMessageQueue::broadcast(const void *buffer, } const rtems_status_code rtemsMessageQueue::receive(const void *buffer, - rtems_unsigned32& size, + uint32_t& size, rtems_interval micro_secs, bool wait) { @@ -164,7 +164,7 @@ const rtems_status_code rtemsMessageQueue::receive(const void *buffer, TOD_MICROSECONDS_TO_TICKS(usecs))); } -const rtems_status_code rtemsMessageQueue::flush(rtems_unsigned32& count) +const rtems_status_code rtemsMessageQueue::flush(uint32_t& count) { return set_status_code(rtems_message_queue_flush(id, &count)); } diff --git a/c/src/librtems++/include/rtems++/rtemsSemaphore.h b/c/src/librtems++/include/rtems++/rtemsSemaphore.h index 997a4a8364..be68a0513e 100644 --- a/c/src/librtems++/include/rtems++/rtemsSemaphore.h +++ b/c/src/librtems++/include/rtems++/rtemsSemaphore.h @@ -64,7 +64,7 @@ public: // create a semaphore object rtemsSemaphore(const char* name, const Scope scope = local, - const rtems_unsigned32 counter = 1, + const uint32_t counter = 1, const WaitMode wait_mode = wait_by_fifo, const Type type = binary, const Priority priority = no_priority_inherit, @@ -72,7 +72,7 @@ public: const rtems_task_priority priority_ceiling = 0); // connect to an existing semaphore object by name - rtemsSemaphore(const char *name, const rtems_unsigned32 node); + rtemsSemaphore(const char *name, const uint32_t node); // attach this object to an other objects semaphore rtemsSemaphore(const rtemsSemaphore& semaphore); @@ -84,7 +84,7 @@ public: // create or destroy (delete) a semaphore virtual const rtems_status_code create(const char* name, const Scope scope = local, - const rtems_unsigned32 counter = 1, + const uint32_t counter = 1, const WaitMode wait_mode = wait_by_fifo, const Type type = binary, const Priority priority = no_priority_inherit, @@ -94,11 +94,11 @@ public: // connect to an existing semaphore object, will not be the owner const rtemsSemaphore& operator=(const rtemsSemaphore& semaphore); - virtual const rtems_status_code connect(const char *name, rtems_unsigned32 node); + virtual const rtems_status_code connect(const char *name, uint32_t node); // obtain the semaphore, timeout is in micro-seconds inline const rtems_status_code obtain(bool wait = true, - const rtems_unsigned32 micro_secs = RTEMS_NO_TIMEOUT); + const uint32_t micro_secs = RTEMS_NO_TIMEOUT); // release the semaphore, blocks threads eligble inline const rtems_status_code release(); @@ -126,7 +126,7 @@ private: }; const rtems_status_code rtemsSemaphore::obtain(const bool wait, - const rtems_unsigned32 micro_secs) + const uint32_t micro_secs) { rtems_interval usecs = micro_secs && (micro_secs < _TOD_Microseconds_per_tick) ? diff --git a/c/src/librtems++/include/rtems++/rtemsTask.h b/c/src/librtems++/include/rtems++/rtemsTask.h index d01315b8a2..45e6de156f 100644 --- a/c/src/librtems++/include/rtems++/rtemsTask.h +++ b/c/src/librtems++/include/rtems++/rtemsTask.h @@ -76,7 +76,7 @@ public: // creates a task rtemsTask(const char* name, const rtems_task_priority initial_priority, - const rtems_unsigned32 stack_size, + const uint32_t stack_size, const rtems_mode preemption = RTEMS_NO_PREEMPT, const rtems_mode timeslice = RTEMS_NO_TIMESLICE, const rtems_mode asr = RTEMS_NO_ASR, @@ -85,7 +85,7 @@ public: const Scope scope = local); // connects to a task - rtemsTask(const char *name, const rtems_unsigned32 node = RTEMS_SEARCH_ALL_NODES); + rtemsTask(const char *name, const uint32_t node = RTEMS_SEARCH_ALL_NODES); // copy and default constructors rtemsTask(const rtemsTask& task); @@ -97,7 +97,7 @@ public: // create or destroy (delete) the task virtual const rtems_status_code create(const char* name, const rtems_task_priority initial_priority, - const rtems_unsigned32 stack_size, + const uint32_t stack_size, const rtems_mode preemption = RTEMS_NO_PREEMPT, const rtems_mode timeslice = RTEMS_NO_TIMESLICE, const rtems_mode asr = RTEMS_NO_ASR, @@ -109,7 +109,7 @@ public: // connect to an existing task object, will not be the owner const rtemsTask& operator=(const rtemsTask& task); virtual const rtems_status_code connect(const char *name, - const rtems_unsigned32 node = RTEMS_SEARCH_ALL_NODES); + const uint32_t node = RTEMS_SEARCH_ALL_NODES); // run control virtual const rtems_status_code start(const rtems_task_argument argument); @@ -128,10 +128,10 @@ public: rtems_task_priority& old_priority); // notepad control - const rtems_status_code get_note(const rtems_unsigned32 notepad, - rtems_unsigned32& note); - const rtems_status_code set_note(const rtems_unsigned32 notepad, - const rtems_unsigned32 note); + const rtems_status_code get_note(const uint32_t notepad, + uint32_t& note); + const rtems_status_code set_note(const uint32_t notepad, + const uint32_t note); // object id, and name const rtems_id id_is() const { return id; } |