diff options
author | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-04 15:49:25 +0000 |
---|---|---|
committer | Giovanni Di Sirio <gdisirio@gmail.com> | 2017-11-04 15:49:25 +0000 |
commit | b8352d5f4b945b307d5850b3bb2259e9ea3c75a8 (patch) | |
tree | 4d770a6cab369323025fe2f1aed80cdb55852e3a /testhal/common | |
parent | 4efd9dfd7d4acf6347b7227bb9f251260c7191d6 (diff) | |
download | ChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.tar.gz ChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.tar.bz2 ChibiOS-b8352d5f4b945b307d5850b3bb2259e9ea3c75a8.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10938 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/common')
-rw-r--r-- | testhal/common/irq_storm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testhal/common/irq_storm.c b/testhal/common/irq_storm.c index c21a2bf00..f8f9b93e3 100644 --- a/testhal/common/irq_storm.c +++ b/testhal/common/irq_storm.c @@ -95,7 +95,7 @@ static THD_FUNCTION(irq_storm_thread, arg) { while (chThdShouldTerminateX() == false) {
/* Waiting for a message.*/
- chMBFetch(&mb[me], &msg, TIME_INFINITE);
+ chMBFetchTimeout(&mb[me], &msg, TIME_INFINITE);
#if IRQ_STORM_CFG_RANDOMIZE != FALSE
/* Pseudo-random delay.*/
@@ -124,7 +124,7 @@ static THD_FUNCTION(irq_storm_thread, arg) { if (target < IRQ_STORM_CFG_NUM_THREADS) {
/* If this thread is not at the end of a chain re-sending the message,
note this check works because the variable target is unsigned.*/
- msg = chMBPost(&mb[target], msg, TIME_IMMEDIATE);
+ msg = chMBPostTimeout(&mb[target], msg, TIME_IMMEDIATE);
if (msg != MSG_OK)
saturated = TRUE;
}
|