aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-11-03 21:34:42 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2008-11-03 21:34:42 +0000
commit1a3658c66a286b112506527a71f9888b9c7e3c98 (patch)
treec672bb12697760a7fa65a7435455ed98bb222f1a /src
parent696ce03ab36389c3cef197b229aa59551cee2bd6 (diff)
downloadChibiOS-1a3658c66a286b112506527a71f9888b9c7e3c98.tar.gz
ChibiOS-1a3658c66a286b112506527a71f9888b9c7e3c98.tar.bz2
ChibiOS-1a3658c66a286b112506527a71f9888b9c7e3c98.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@495 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'src')
-rw-r--r--src/chmtx.c2
-rw-r--r--src/chschd.c2
-rw-r--r--src/chsem.c2
-rw-r--r--src/chthreads.c2
-rw-r--r--src/include/lists.h2
5 files changed, 5 insertions, 5 deletions
diff --git a/src/chmtx.c b/src/chmtx.c
index ea3ccccda..25a490b98 100644
--- a/src/chmtx.c
+++ b/src/chmtx.c
@@ -32,7 +32,7 @@
*/
void chMtxInit(Mutex *mp) {
- fifo_init(&mp->m_queue);
+ queue_init(&mp->m_queue);
mp->m_owner = NULL;
}
diff --git a/src/chschd.c b/src/chschd.c
index 573b311ec..52d2b5566 100644
--- a/src/chschd.c
+++ b/src/chschd.c
@@ -34,7 +34,7 @@ ReadyList rlist;
*/
void chSchInit(void) {
- fifo_init(&rlist.r_queue);
+ queue_init(&rlist.r_queue);
rlist.r_prio = NOPRIO;
#ifdef CH_USE_ROUNDROBIN
rlist.r_preempt = CH_TIME_QUANTUM;
diff --git a/src/chsem.c b/src/chsem.c
index 011737642..1ec852a98 100644
--- a/src/chsem.c
+++ b/src/chsem.c
@@ -34,7 +34,7 @@
void chSemInit(Semaphore *sp, cnt_t n) {
chDbgAssert(n >= 0, "chsem.c, chSemInit()");
- fifo_init(&sp->s_queue);
+ queue_init(&sp->s_queue);
sp->s_cnt = n;
}
diff --git a/src/chthreads.c b/src/chthreads.c
index 3f55c4de5..f2afdac89 100644
--- a/src/chthreads.c
+++ b/src/chthreads.c
@@ -43,7 +43,7 @@ Thread *init_thread(Thread *tp, tprio_t prio) {
list_init(&tp->p_waiting);
#endif
#ifdef CH_USE_MESSAGES
- fifo_init(&tp->p_msgqueue);
+ queue_init(&tp->p_msgqueue);
#endif
#ifdef CH_USE_EVENTS
tp->p_epending = 0;
diff --git a/src/include/lists.h b/src/include/lists.h
index 2f4324b71..785d3b013 100644
--- a/src/include/lists.h
+++ b/src/include/lists.h
@@ -53,7 +53,7 @@ typedef struct {
/*
* Threads Lists functions and macros.
*/
-#define fifo_init(tqp) ((tqp)->p_next = (tqp)->p_prev = (Thread *)(tqp));
+#define queue_init(tqp) ((tqp)->p_next = (tqp)->p_prev = (Thread *)(tqp));
#define list_init(tlp) ((tlp)->p_next = (Thread *)(tlp))
#ifndef CH_OPTIMIZE_SPEED