@@ -568,7 +568,7 int create_all_tasks( void ) // create a | |||
|
568 | 568 | status = rtems_task_create( |
|
569 | 569 | Task_name[TASKID_SCRB], TASK_PRIORITY_SCRB, RTEMS_MINIMUM_STACK_SIZE, |
|
570 | 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 | 574 | if (status == RTEMS_SUCCESSFUL) // HOUS |
@@ -533,11 +533,12 rtems_task scrubbing_task( rtems_task_ar | |||
|
533 | 533 | |
|
534 | 534 | BOOT_PRINTF("in SCRUBBING *** \n"); |
|
535 | 535 | volatile int i=0; |
|
536 | volatile float valuef = 1.; | |
|
536 | 537 | volatile uint32_t* RAM=(uint32_t*)0x40000000; |
|
537 | 538 | volatile uint32_t value; |
|
538 | 539 | while(1){ |
|
539 | 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