forked from Imagelibrary/rtems
White space removal.
This commit is contained in:
@@ -40,7 +40,7 @@ public:
|
|||||||
enum Condition { any = RTEMS_EVENT_ANY,
|
enum Condition { any = RTEMS_EVENT_ANY,
|
||||||
all = RTEMS_EVENT_ALL};
|
all = RTEMS_EVENT_ALL};
|
||||||
|
|
||||||
// only the first 4 characters of the name are taken
|
// only the first 4 characters of the name are taken
|
||||||
|
|
||||||
// connect to a task
|
// connect to a task
|
||||||
rtemsEvent(const char* name, uint32_t node = RTEMS_SEARCH_ALL_NODES);
|
rtemsEvent(const char* name, uint32_t node = RTEMS_SEARCH_ALL_NODES);
|
||||||
@@ -49,7 +49,7 @@ public:
|
|||||||
rtemsEvent(const rtemsEvent& event);
|
rtemsEvent(const rtemsEvent& event);
|
||||||
rtemsEvent();
|
rtemsEvent();
|
||||||
|
|
||||||
virtual ~rtemsEvent();
|
virtual ~rtemsEvent();
|
||||||
|
|
||||||
// connect to an existing task object, will not be the owner
|
// connect to an existing task object, will not be the owner
|
||||||
const rtemsEvent& operator=(const rtemsEvent& event);
|
const rtemsEvent& operator=(const rtemsEvent& event);
|
||||||
@@ -74,7 +74,7 @@ public:
|
|||||||
const rtems_id task_id_is() const { return id; }
|
const rtems_id task_id_is() const { return id; }
|
||||||
const rtems_name task_name_is() const { return name; }
|
const rtems_name task_name_is() const { return name; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// task name
|
// task name
|
||||||
rtems_name name;
|
rtems_name name;
|
||||||
|
|
||||||
|
|||||||
@@ -66,10 +66,10 @@ protected:
|
|||||||
// called after the interrupt is caught and it goes off
|
// called after the interrupt is caught and it goes off
|
||||||
virtual void handler() = 0;
|
virtual void handler() = 0;
|
||||||
|
|
||||||
// chain to the previous handler,
|
// chain to the previous handler,
|
||||||
inline void chain() const;
|
inline void chain() const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const rtemsInterrupt& operator=(const rtemsInterrupt& );
|
const rtemsInterrupt& operator=(const rtemsInterrupt& );
|
||||||
rtemsInterrupt(const rtemsInterrupt& );
|
rtemsInterrupt(const rtemsInterrupt& );
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public:
|
|||||||
enum Scope { local = RTEMS_LOCAL,
|
enum Scope { local = RTEMS_LOCAL,
|
||||||
global = RTEMS_GLOBAL };
|
global = RTEMS_GLOBAL };
|
||||||
|
|
||||||
// only the first 4 characters of the name are taken
|
// only the first 4 characters of the name are taken
|
||||||
|
|
||||||
// creates a message queue
|
// creates a message queue
|
||||||
rtemsMessageQueue(const char* name,
|
rtemsMessageQueue(const char* name,
|
||||||
@@ -83,7 +83,7 @@ public:
|
|||||||
virtual const rtems_status_code destroy();
|
virtual const rtems_status_code destroy();
|
||||||
|
|
||||||
// connect to an existing message queue object, will not be the owner
|
// connect to an existing message queue object, will not be the owner
|
||||||
const rtemsMessageQueue& operator=(const rtemsMessageQueue& message_queue);
|
const rtemsMessageQueue& operator=(const rtemsMessageQueue& message_queue);
|
||||||
virtual const rtems_status_code connect(const char *name,
|
virtual const rtems_status_code connect(const char *name,
|
||||||
const uint32_t node = RTEMS_SEARCH_ALL_NODES);
|
const uint32_t node = RTEMS_SEARCH_ALL_NODES);
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public:
|
|||||||
virtual const rtems_status_code destroy();
|
virtual const rtems_status_code destroy();
|
||||||
|
|
||||||
// connect to an existing semaphore object, will not be the owner
|
// connect to an existing semaphore object, will not be the owner
|
||||||
const rtemsSemaphore& operator=(const rtemsSemaphore& semaphore);
|
const rtemsSemaphore& operator=(const rtemsSemaphore& semaphore);
|
||||||
virtual const rtems_status_code connect(const char *name, uint32_t node);
|
virtual const rtems_status_code connect(const char *name, uint32_t node);
|
||||||
|
|
||||||
// obtain the semaphore, timeout is in micro-seconds
|
// obtain the semaphore, timeout is in micro-seconds
|
||||||
@@ -139,7 +139,7 @@ const rtems_status_code rtemsSemaphore::obtain(const bool wait,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const rtems_status_code rtemsSemaphore::release(void)
|
const rtems_status_code rtemsSemaphore::release(void)
|
||||||
{
|
{
|
||||||
return set_status_code(rtems_semaphore_release(id));
|
return set_status_code(rtems_semaphore_release(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ public:
|
|||||||
enum Scope { local = RTEMS_LOCAL,
|
enum Scope { local = RTEMS_LOCAL,
|
||||||
global = RTEMS_GLOBAL };
|
global = RTEMS_GLOBAL };
|
||||||
|
|
||||||
// only the first 4 characters of the name are taken
|
// only the first 4 characters of the name are taken
|
||||||
|
|
||||||
// creates a task
|
// creates a task
|
||||||
rtemsTask(const char* name,
|
rtemsTask(const char* name,
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ const rtems_status_code rtemsTimer::cancel()
|
|||||||
}
|
}
|
||||||
|
|
||||||
const rtems_status_code rtemsTimer::reset()
|
const rtems_status_code rtemsTimer::reset()
|
||||||
{
|
{
|
||||||
return set_status_code(rtems_timer_reset(id));
|
return set_status_code(rtems_timer_reset(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user