summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-16 09:24:30 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-16 09:24:30 +0000
commit1b4f2b305c95a832a259e4c4944f1a0981676eba (patch)
tree1ee56809b12a03ba53d630f5483a48387f72b74a /c
parentRemove stray white spaces. (diff)
downloadrtems-1b4f2b305c95a832a259e4c4944f1a0981676eba.tar.bz2
Remove stray white spaces.
Diffstat (limited to 'c')
-rw-r--r--c/src/librtems++/include/rtems++/rtemsEvent.h14
-rw-r--r--c/src/librtems++/include/rtems++/rtemsInterrupt.h18
-rw-r--r--c/src/librtems++/include/rtems++/rtemsMessageQueue.h24
-rw-r--r--c/src/librtems++/include/rtems++/rtemsSemaphore.h18
-rw-r--r--c/src/librtems++/include/rtems++/rtemsStatusCode.h16
-rw-r--r--c/src/librtems++/include/rtems++/rtemsTask.h26
-rw-r--r--c/src/librtems++/include/rtems++/rtemsTaskMode.h10
-rw-r--r--c/src/librtems++/include/rtems++/rtemsTimer.h18
8 files changed, 72 insertions, 72 deletions
diff --git a/c/src/librtems++/include/rtems++/rtemsEvent.h b/c/src/librtems++/include/rtems++/rtemsEvent.h
index dd6682264b..da1b6851f3 100644
--- a/c/src/librtems++/include/rtems++/rtemsEvent.h
+++ b/c/src/librtems++/include/rtems++/rtemsEvent.h
@@ -6,7 +6,7 @@
COPYRIGHT (c) 1997
Objective Design Systems Ltd Pty (ODS)
All rights reserved (R) Objective Design Systems Ltd Pty
-
+
The license and distribution terms for this file may be found in the
file LICENSE in this distribution or at
http://www.rtems.com/license/LICENSE.
@@ -34,12 +34,12 @@ class rtemsEvent
{
public:
// attribute a task can have
-
+
enum WaitMode { wait = RTEMS_WAIT,
no_wait = RTEMS_NO_WAIT};
enum Condition { any = RTEMS_EVENT_ANY,
all = RTEMS_EVENT_ALL};
-
+
// only the first 4 characters of the name are taken
// connect to a task
@@ -48,14 +48,14 @@ public:
// copy and default constructors
rtemsEvent(const rtemsEvent& event);
rtemsEvent();
-
+
virtual ~rtemsEvent();
-
+
// 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);
-
+
// send an event
inline const rtems_status_code send(const rtems_id task,
const rtems_event_set events);
@@ -73,7 +73,7 @@ public:
// object id, and name
const rtems_id task_id_is() const { return id; }
const rtems_name task_name_is() const { return name; }
-
+
private:
// task name
rtems_name name;
diff --git a/c/src/librtems++/include/rtems++/rtemsInterrupt.h b/c/src/librtems++/include/rtems++/rtemsInterrupt.h
index 3fe3ed3bc1..0c4f4f0d11 100644
--- a/c/src/librtems++/include/rtems++/rtemsInterrupt.h
+++ b/c/src/librtems++/include/rtems++/rtemsInterrupt.h
@@ -6,7 +6,7 @@
COPYRIGHT (c) 1997
Objective Design Systems Ltd Pty (ODS)
All rights reserved (R) Objective Design Systems Ltd Pty
-
+
The license and distribution terms for this file may be found in the
file LICENSE in this distribution or at
http://www.rtems.com/license/LICENSE.
@@ -29,11 +29,11 @@
the old handler is not an instance of this class the chain is passed
as "void (*)(void)". If it is an instance of this class, the handler
method is directly called.
-
+
The isr catch extends the documented return codes with :
RTEMS_RESOURCE_IN_USE = interrupt already caught
-
+
------------------------------------------------------------------------ */
#if !defined(_rtemsInterrupt_h_)
@@ -54,13 +54,13 @@ public:
// catch the interrupt
virtual const rtems_status_code isr_catch(const rtems_vector_number vector);
-
+
// release the interrupt back to the previous handle
virtual const rtems_status_code release();
// the old handler
const rtems_isr_entry old_isr_handler() const { return old_handler; }
-
+
protected:
// called after the interrupt is caught and it goes off
@@ -68,17 +68,17 @@ protected:
// chain to the previous handler,
inline void chain() const;
-
+
private:
const rtemsInterrupt& operator=(const rtemsInterrupt& );
rtemsInterrupt(const rtemsInterrupt& );
-
+
// the vector caught
rtems_vector_number vector;
-
+
// true when the interrupt is caught
bool caught;
-
+
// returned when catching the interrupt
rtems_isr_entry old_handler;
diff --git a/c/src/librtems++/include/rtems++/rtemsMessageQueue.h b/c/src/librtems++/include/rtems++/rtemsMessageQueue.h
index d05968ee8d..9c899ee655 100644
--- a/c/src/librtems++/include/rtems++/rtemsMessageQueue.h
+++ b/c/src/librtems++/include/rtems++/rtemsMessageQueue.h
@@ -6,7 +6,7 @@
COPYRIGHT (c) 1997
Objective Design Systems Ltd Pty (ODS)
All rights reserved (R) Objective Design Systems Ltd Pty
-
+
The license and distribution terms for this file may be found in the
file LICENSE in this distribution or at
http://www.rtems.com/license/LICENSE.
@@ -33,7 +33,7 @@
The fourth constructor allows for the message queue to be created
after construction, or to connect to a message queue later.
-
+
------------------------------------------------------------------------ */
#if !defined(_rtemsMessageQueue_h_)
@@ -54,7 +54,7 @@ public:
wait_by_priority = RTEMS_PRIORITY };
enum Scope { local = RTEMS_LOCAL,
global = RTEMS_GLOBAL };
-
+
// only the first 4 characters of the name are taken
// creates a message queue
@@ -70,10 +70,10 @@ public:
// copy and default constructors
rtemsMessageQueue(const rtemsMessageQueue& message_queue);
rtemsMessageQueue();
-
+
// only the creator's destructor will delete the actual object
virtual ~rtemsMessageQueue();
-
+
// create or destroy (delete) the message queue
virtual const rtems_status_code create(const char* name,
const rtems_unsigned32 count,
@@ -86,7 +86,7 @@ public:
const rtemsMessageQueue& operator=(const rtemsMessageQueue& message_queue);
virtual const rtems_status_code connect(const char *name,
const rtems_unsigned32 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);
@@ -101,28 +101,28 @@ public:
rtems_unsigned32& 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);
-
+
// object id, and name
const rtems_id id_is() const { return id; }
const rtems_name name_is() const { return name; }
const char *name_string() const { return name_str; }
-
+
private:
// make this object reference an invalid RTEMS object
void make_invalid();
-
+
// message queue name
rtems_name name;
char name_str[5];
-
+
// owner, true if this object owns the message queue
// will delete the message queue when it destructs
bool owner;
-
+
// the rtems id, object handle
rtems_id id;
};
diff --git a/c/src/librtems++/include/rtems++/rtemsSemaphore.h b/c/src/librtems++/include/rtems++/rtemsSemaphore.h
index dedffa83aa..997a4a8364 100644
--- a/c/src/librtems++/include/rtems++/rtemsSemaphore.h
+++ b/c/src/librtems++/include/rtems++/rtemsSemaphore.h
@@ -6,7 +6,7 @@
COPYRIGHT (c) 1997
Objective Design Systems Ltd Pty (ODS)
All rights reserved (R) Objective Design Systems Ltd Pty
-
+
The license and distribution terms for this file may be found in the
file LICENSE in this distribution or at
http://www.rtems.com/license/LICENSE.
@@ -73,7 +73,7 @@ public:
// connect to an existing semaphore object by name
rtemsSemaphore(const char *name, const rtems_unsigned32 node);
-
+
// attach this object to an other objects semaphore
rtemsSemaphore(const rtemsSemaphore& semaphore);
rtemsSemaphore();
@@ -91,28 +91,28 @@ public:
const Ceiling ceiling = no_priority_ceiling,
const rtems_task_priority priority_ceiling = 0);
virtual const rtems_status_code destroy();
-
+
// 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);
-
+
// 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);
-
+
// release the semaphore, blocks threads eligble
inline const rtems_status_code release();
-
+
// object id, and name
const rtems_id id_is() const { return id; }
const rtems_name name_is() const { return name; }
const char *name_string() const { return name_str; }
-
+
private:
// make the object reference no valid RTEMS object
void make_invalid();
-
+
// semaphore name
rtems_name name;
char name_str[5];
@@ -120,7 +120,7 @@ private:
// owner, true if this object owns the semaphore
// will delete the semaphore when it destructs
bool owner;
-
+
// the rtems id, object handle
rtems_id id;
};
diff --git a/c/src/librtems++/include/rtems++/rtemsStatusCode.h b/c/src/librtems++/include/rtems++/rtemsStatusCode.h
index 90da637cb1..d7f600536c 100644
--- a/c/src/librtems++/include/rtems++/rtemsStatusCode.h
+++ b/c/src/librtems++/include/rtems++/rtemsStatusCode.h
@@ -6,7 +6,7 @@
COPYRIGHT (c) 1997
Objective Design Systems Ltd Pty (ODS)
All rights reserved (R) Objective Design Systems Ltd Pty
-
+
The license and distribution terms for this file may be found in the
file LICENSE in this distribution or at
http://www.rtems.com/license/LICENSE.
@@ -14,7 +14,7 @@
------------------------------------------------------------------------
rtemsStatusCode controls and manages status codes from the RTEMS kernel.
-
+
------------------------------------------------------------------------
*/
@@ -30,15 +30,15 @@
class rtemsStatusCode
{
public:
-
+
rtemsStatusCode() { last_status = RTEMS_NOT_CONFIGURED; }
-
+
const bool successful() { return last_status == RTEMS_SUCCESSFUL; }
const bool unsuccessful() { return last_status != RTEMS_SUCCESSFUL; }
-
+
// return the last status code
const rtems_status_code last_status_code() { return last_status; }
-
+
// return the last status as a string
const char *last_status_string();
@@ -47,9 +47,9 @@ public:
protected:
const rtems_status_code set_status_code(const rtems_status_code status)
{ return (last_status = status); }
-
+
private:
-
+
// public at the moment, this might change
rtems_status_code last_status;
};
diff --git a/c/src/librtems++/include/rtems++/rtemsTask.h b/c/src/librtems++/include/rtems++/rtemsTask.h
index 7d9ca794ec..d01315b8a2 100644
--- a/c/src/librtems++/include/rtems++/rtemsTask.h
+++ b/c/src/librtems++/include/rtems++/rtemsTask.h
@@ -6,7 +6,7 @@
COPYRIGHT (c) 1997
Objective Design Systems Ltd Pty (ODS)
All rights reserved (R) Objective Design Systems Ltd Pty
-
+
The license and distribution terms for this file may be found in the
file LICENSE in this distribution or at
http://www.rtems.com/license/LICENSE.
@@ -29,7 +29,7 @@
The third constructor is a copy constructor. Connects to an existing
object which is in scope.
-
+
The RTEMS id is set to self in the default construction.
The creation of the task object can be defered until after
@@ -50,7 +50,7 @@
Mode control is through the rtemsTaskMode class.
The rtemsTask class reserved notepad register 31.
-
+
------------------------------------------------------------------------ */
#if !defined(_rtemsTask_h_)
@@ -90,10 +90,10 @@ public:
// copy and default constructors
rtemsTask(const rtemsTask& task);
rtemsTask();
-
+
// only the creator's destructor will delete the actual object
virtual ~rtemsTask();
-
+
// create or destroy (delete) the task
virtual const rtems_status_code create(const char* name,
const rtems_task_priority initial_priority,
@@ -110,7 +110,7 @@ public:
const rtemsTask& operator=(const rtemsTask& task);
virtual const rtems_status_code connect(const char *name,
const rtems_unsigned32 node = RTEMS_SEARCH_ALL_NODES);
-
+
// run control
virtual const rtems_status_code start(const rtems_task_argument argument);
virtual const rtems_status_code restart(const rtems_task_argument argument);
@@ -120,13 +120,13 @@ public:
// sleep control, the timeout is in micro-seconds
virtual const rtems_status_code wake_after(const rtems_interval micro_secs);
virtual const rtems_status_code wake_when(const rtems_time_of_day& tod);
-
+
// priority control
const rtems_status_code get_priority(rtems_task_priority& priority);
const rtems_status_code set_priority(const rtems_task_priority priority);
const rtems_status_code set_priority(const rtems_task_priority priority,
rtems_task_priority& old_priority);
-
+
// notepad control
const rtems_status_code get_note(const rtems_unsigned32 notepad,
rtems_unsigned32& note);
@@ -137,17 +137,17 @@ public:
const rtems_id id_is() const { return id; }
const rtems_name name_is() const { return name; }
const char *name_string() const { return name_str; }
-
+
protected:
// task entry point
virtual void body(rtems_task_argument argument);
-
+
private:
// make the object to point to RTEMS_SELF
void make_self();
-
+
// task name
rtems_name name;
char name_str[5];
@@ -155,14 +155,14 @@ private:
// owner, true if this object owns the task
// will delete the task when it destructs
bool owner;
-
+
// the rtems id, object handle
rtems_id id;
// the argument for the task, this class uses the actual argument
// passed to RTEMS
rtems_task_argument argument;
-
+
// common entry point to the task
static rtems_task origin(rtems_task_argument argument);
};
diff --git a/c/src/librtems++/include/rtems++/rtemsTaskMode.h b/c/src/librtems++/include/rtems++/rtemsTaskMode.h
index 63923c8f37..2e575fd003 100644
--- a/c/src/librtems++/include/rtems++/rtemsTaskMode.h
+++ b/c/src/librtems++/include/rtems++/rtemsTaskMode.h
@@ -6,7 +6,7 @@
COPYRIGHT (c) 1997
Objective Design Systems Ltd Pty (ODS)
All rights reserved (R) Objective Design Systems Ltd Pty
-
+
The license and distribution terms for this file may be found in the
file LICENSE in this distribution or at
http://www.rtems.com/license/LICENSE.
@@ -29,7 +29,7 @@
Methods are provided for accessing and controlling a specific
mode. The returned value will only contain the requested mode's flags,
and only the that mode will be changed when setting a mode.
-
+
------------------------------------------------------------------------ */
#if !defined(_rtemsTaskMode_h_)
@@ -45,9 +45,9 @@ class rtemsTaskMode
: public rtemsStatusCode
{
public:
-
+
rtemsTaskMode() {};
-
+
// group mode control, OR the values together
inline const rtems_status_code get_mode(rtems_mode& mode);
inline const rtems_status_code set_mode(const rtems_mode mode,
@@ -55,7 +55,7 @@ public:
inline const rtems_status_code set_mode(const rtems_mode mode,
const rtems_mode mask,
rtems_mode& old_mode);
-
+
// preemption control
inline const rtems_status_code get_preemption_state(rtems_mode& preemption);
inline const rtems_status_code set_preemption_state(const rtems_mode preemption);
diff --git a/c/src/librtems++/include/rtems++/rtemsTimer.h b/c/src/librtems++/include/rtems++/rtemsTimer.h
index 0d432a4957..0ba683c2f2 100644
--- a/c/src/librtems++/include/rtems++/rtemsTimer.h
+++ b/c/src/librtems++/include/rtems++/rtemsTimer.h
@@ -6,7 +6,7 @@
COPYRIGHT (c) 1997
Objective Design Systems Ltd Pty (ODS)
All rights reserved (R) Objective Design Systems Ltd Pty
-
+
The license and distribution terms for this file may be found in the
file LICENSE in this distribution or at
http://www.rtems.com/license/LICENSE.
@@ -22,7 +22,7 @@
method.
Timers are always local to a node.
-
+
------------------------------------------------------------------------ */
#if !defined(_rtemsTimer_h_)
@@ -43,32 +43,32 @@ public:
// create a timer object
rtemsTimer(const char* name);
rtemsTimer();
-
+
// destroies the actual object
virtual ~rtemsTimer();
// create or destroy (delete) the timer
virtual const rtems_status_code create(const char* name);
virtual const rtems_status_code destroy();
-
+
// timer control
inline const rtems_status_code fire_after(const rtems_interval micro_secs);
inline const rtems_status_code repeat_fire_at(const rtems_interval micro_secs);
inline const rtems_status_code fire_when(const rtems_time_of_day& when);
-
+
inline const rtems_status_code cancel();
inline const rtems_status_code reset();
-
+
// object id, and name
const rtems_id id_is() const { return id; }
const rtems_name name_is() const { return name; }
const char *name_string() const { return name_str; }
-
+
protected:
// triggered method is called when the timer fires
virtual void triggered() = 0;
-
+
private:
// not permitted
rtemsTimer(const rtemsTimer& timer);
@@ -76,7 +76,7 @@ private:
// make this object reference an invalid RTEMS object
void make_invalid();
-
+
// semaphore name
rtems_name name;
char name_str[5];