From 215138abcf29dd99fa4916c442a4626d3550777a Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 27 Feb 2016 16:22:37 +0000 Subject: Enhanced .ld files. Mass update of shell demos. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8963 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/common/irq_storm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testhal/common') diff --git a/testhal/common/irq_storm.c b/testhal/common/irq_storm.c index 42a7a52be..2e5382881 100644 --- a/testhal/common/irq_storm.c +++ b/testhal/common/irq_storm.c @@ -92,7 +92,7 @@ static THD_FUNCTION(irq_storm_thread, arg) { chRegSetThreadName("irq_storm"); /* Thread loop, until terminated.*/ - while ((chEvtGetEventsX() & CH_EVENT_TERMINATE) != 0U) { + while (chThdShouldTerminateX() == false) { /* Waiting for a message.*/ chMBFetch(&mb[me], &msg, TIME_INFINITE); @@ -271,7 +271,7 @@ void irq_storm_execute(const irq_storm_config_t *cfg) { /* Terminating threads and cleaning up.*/ for (i = 0; i < IRQ_STORM_CFG_NUM_THREADS; i++) { - chEvtSignal(threads[i], CH_EVENT_TERMINATE); + chThdTerminate(threads[i]); chThdWait(threads[i]); threads[i] = NULL; } -- cgit v1.2.3