From 286deccd1280b0d66ccc6d9b2617719582607f0d Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Thu, 12 Oct 2017 08:37:47 +0000 Subject: EXPERIMENTAL: Introduced sysinterval_t in RT, now system time and intervals are different types and could have different sizes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/rt5_dev_point1@10812 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/common/oslib/src/chmboxes.c | 12 ++++++------ os/common/oslib/src/chmempools.c | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'os/common/oslib/src') diff --git a/os/common/oslib/src/chmboxes.c b/os/common/oslib/src/chmboxes.c index 5f2f9b6a3..48b5b4f01 100644 --- a/os/common/oslib/src/chmboxes.c +++ b/os/common/oslib/src/chmboxes.c @@ -162,7 +162,7 @@ void chMBResetI(mailbox_t *mbp) { * * @api */ -msg_t chMBPostTimeout(mailbox_t *mbp, msg_t msg, systime_t timeout) { +msg_t chMBPostTimeout(mailbox_t *mbp, msg_t msg, sysinterval_t timeout) { msg_t rdymsg; chSysLock(); @@ -191,7 +191,7 @@ msg_t chMBPostTimeout(mailbox_t *mbp, msg_t msg, systime_t timeout) { * * @sclass */ -msg_t chMBPostTimeoutS(mailbox_t *mbp, msg_t msg, systime_t timeout) { +msg_t chMBPostTimeoutS(mailbox_t *mbp, msg_t msg, sysinterval_t timeout) { msg_t rdymsg; chDbgCheckClassS(); @@ -287,7 +287,7 @@ msg_t chMBPostI(mailbox_t *mbp, msg_t msg) { * * @api */ -msg_t chMBPostAheadTimeout(mailbox_t *mbp, msg_t msg, systime_t timeout) { +msg_t chMBPostAheadTimeout(mailbox_t *mbp, msg_t msg, sysinterval_t timeout) { msg_t rdymsg; chSysLock(); @@ -316,7 +316,7 @@ msg_t chMBPostAheadTimeout(mailbox_t *mbp, msg_t msg, systime_t timeout) { * * @sclass */ -msg_t chMBPostAheadTimeoutS(mailbox_t *mbp, msg_t msg, systime_t timeout) { +msg_t chMBPostAheadTimeoutS(mailbox_t *mbp, msg_t msg, sysinterval_t timeout) { msg_t rdymsg; chDbgCheckClassS(); @@ -412,7 +412,7 @@ msg_t chMBPostAheadI(mailbox_t *mbp, msg_t msg) { * * @api */ -msg_t chMBFetchTimeout(mailbox_t *mbp, msg_t *msgp, systime_t timeout) { +msg_t chMBFetchTimeout(mailbox_t *mbp, msg_t *msgp, sysinterval_t timeout) { msg_t rdymsg; chSysLock(); @@ -441,7 +441,7 @@ msg_t chMBFetchTimeout(mailbox_t *mbp, msg_t *msgp, systime_t timeout) { * * @sclass */ -msg_t chMBFetchTimeoutS(mailbox_t *mbp, msg_t *msgp, systime_t timeout) { +msg_t chMBFetchTimeoutS(mailbox_t *mbp, msg_t *msgp, sysinterval_t timeout) { msg_t rdymsg; chDbgCheckClassS(); diff --git a/os/common/oslib/src/chmempools.c b/os/common/oslib/src/chmempools.c index aec47400c..5e23273f5 100644 --- a/os/common/oslib/src/chmempools.c +++ b/os/common/oslib/src/chmempools.c @@ -268,7 +268,7 @@ void chGuardedPoolLoadArray(guarded_memory_pool_t *gmp, void *p, size_t n) { * @sclass */ void *chGuardedPoolAllocTimeoutS(guarded_memory_pool_t *gmp, - systime_t timeout) { + sysinterval_t timeout) { msg_t msg; msg = chSemWaitTimeoutS(&gmp->sem, timeout); @@ -295,7 +295,7 @@ void *chGuardedPoolAllocTimeoutS(guarded_memory_pool_t *gmp, * @api */ void *chGuardedPoolAllocTimeout(guarded_memory_pool_t *gmp, - systime_t timeout) { + sysinterval_t timeout) { void *p; chSysLock(); -- cgit v1.2.3