aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-18 19:32:19 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-12-18 19:32:19 +0000
commit0d042f79cde57fbf2438bfe017eca1f35a256fd5 (patch)
treefd5ed6c5367fa60a4828d05fcb01f49597681daf
parent78fdea689982ec0d4fe991e61a0a2e93ce31c32c (diff)
downloadChibiOS-0d042f79cde57fbf2438bfe017eca1f35a256fd5.tar.gz
ChibiOS-0d042f79cde57fbf2438bfe017eca1f35a256fd5.tar.bz2
ChibiOS-0d042f79cde57fbf2438bfe017eca1f35a256fd5.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3639 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--testhal/STM32F4xx/IRQ_STORM_FPU/main.c19
1 files changed, 16 insertions, 3 deletions
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.