##// END OF EJS Templates
Now uses FPU in scrubbing task to increase power consumption.
jeandet -
r373:a5fd85da05a7 No PWD scrub with... draft
parent child
Show More
@@ -568,7 +568,7 int create_all_tasks( void ) // create a
568 status = rtems_task_create(
568 status = rtems_task_create(
569 Task_name[TASKID_SCRB], TASK_PRIORITY_SCRB, RTEMS_MINIMUM_STACK_SIZE,
569 Task_name[TASKID_SCRB], TASK_PRIORITY_SCRB, RTEMS_MINIMUM_STACK_SIZE,
570 RTEMS_DEFAULT_MODES,
570 RTEMS_DEFAULT_MODES,
571 RTEMS_DEFAULT_ATTRIBUTES, &Task_id[TASKID_SCRB]
571 RTEMS_DEFAULT_ATTRIBUTES | RTEMS_FLOATING_POINT, &Task_id[TASKID_SCRB]
572 );
572 );
573 }
573 }
574 if (status == RTEMS_SUCCESSFUL) // HOUS
574 if (status == RTEMS_SUCCESSFUL) // HOUS
@@ -533,11 +533,12 rtems_task scrubbing_task( rtems_task_ar
533
533
534 BOOT_PRINTF("in SCRUBBING *** \n");
534 BOOT_PRINTF("in SCRUBBING *** \n");
535 volatile int i=0;
535 volatile int i=0;
536 volatile float valuef = 1.;
536 volatile uint32_t* RAM=(uint32_t*)0x40000000;
537 volatile uint32_t* RAM=(uint32_t*)0x40000000;
537 volatile uint32_t value;
538 volatile uint32_t value;
538 while(1){
539 while(1){
539 i=(i+1)%(1024*1024);
540 i=(i+1)%(1024*1024);
540 value += RAM[i];
541 valuef += 10.f*(float)RAM[i];
541 }
542 }
542 }
543 }
543
544
General Comments 0
You need to be logged in to leave comments. Login now