From 0d042f79cde57fbf2438bfe017eca1f35a256fd5 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 18 Dec 2011 19:32:19 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3639 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- testhal/STM32F4xx/IRQ_STORM_FPU/main.c | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) (limited to 'testhal/STM32F4xx') diff --git a/testhal/STM32F4xx/IRQ_STORM_FPU/main.c b/testhal/STM32F4xx/IRQ_STORM_FPU/main.c index 3cd0a1ade..0809b624a 100644 --- a/testhal/STM32F4xx/IRQ_STORM_FPU/main.c +++ b/testhal/STM32F4xx/IRQ_STORM_FPU/main.c @@ -57,7 +57,18 @@ static msg_t WorkerThread(void *arg) { (void)arg; - palTogglePad(GPIOD, GPIOD_LED5); + while(1) { + float f1, f2, f3, f4, f5; + + f1 = ff1(3); + f2 = ff1(4); + f3 = ff1(5); + f5 = f1 + f2 + f3; + f4 = ff1(6); + f5 = ff2(f5, f4, f5, f4); + if (f5 != 324) + chSysHalt(); + } } /* @@ -175,10 +186,12 @@ int main(void) { /* * Initializes the mailboxes and creates the worker threads. */ - for (i = 0; i < NUM_THREADS; i++) { +/* for (i = 0; i < NUM_THREADS; i++) { chThdCreateStatic(waWorkerThread[i], sizeof waWorkerThread[i], NORMALPRIO - 20, WorkerThread, (void *)i); - } + }*/ + chThdCreateStatic(waWorkerThread[0], sizeof waWorkerThread[0], + NORMALPRIO - 20, WorkerThread, (void *)0); /* * Test procedure. -- cgit v1.2.3