##// END OF EJS Templates
3.2.0.1...
paul -
r346:698df4d9c944 R3++ draft
parent child
Show More
@@ -64,7 +64,7 option(FSW_debug_tch "?" OFF)
64 64 set(SW_VERSION_N1 "3" CACHE STRING "Choose N1 FSW Version." FORCE)
65 65 set(SW_VERSION_N2 "2" CACHE STRING "Choose N2 FSW Version." FORCE)
66 66 set(SW_VERSION_N3 "0" CACHE STRING "Choose N3 FSW Version." FORCE)
67 set(SW_VERSION_N4 "0" CACHE STRING "Choose N4 FSW Version." FORCE)
67 set(SW_VERSION_N4 "1" CACHE STRING "Choose N4 FSW Version." FORCE)
68 68
69 69 if(FSW_verbose)
70 70 add_definitions(-DPRINT_MESSAGES_ON_CONSOLE)
@@ -26,7 +26,7
26 26 #define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
27 27 #define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
28 28
29 #define CONFIGURE_MAXIMUM_TASKS 20
29 #define CONFIGURE_MAXIMUM_TASKS 21 // number of tasks concurrently active including INIT
30 30 #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
31 31 #define CONFIGURE_EXTRA_TASK_STACKS (3 * RTEMS_MINIMUM_STACK_SIZE)
32 32 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 32
@@ -34,7 +34,7
34 34 #define CONFIGURE_INIT_TASK_MODE (RTEMS_DEFAULT_MODES | RTEMS_NO_PREEMPT)
35 35 #define CONFIGURE_INIT_TASK_ATTRIBUTES (RTEMS_DEFAULT_ATTRIBUTES | RTEMS_FLOATING_POINT)
36 36 #define CONFIGURE_MAXIMUM_DRIVERS 16
37 #define CONFIGURE_MAXIMUM_PERIODS 5
37 #define CONFIGURE_MAXIMUM_PERIODS 5 // [hous] [load] [avgv]
38 38 #define CONFIGURE_MAXIMUM_TIMERS 5 // [spiq] [link] [spacewire_reset_link]
39 39 #define CONFIGURE_MAXIMUM_MESSAGE_QUEUES 5
40 40 #ifdef PRINT_STACK_REPORT
@@ -357,6 +357,7 void create_names( void ) // create all
357 357 */
358 358
359 359 // task names
360 Task_name[TASKID_AVGV] = rtems_build_name( 'A', 'V', 'G', 'V' );
360 361 Task_name[TASKID_RECV] = rtems_build_name( 'R', 'E', 'C', 'V' );
361 362 Task_name[TASKID_ACTN] = rtems_build_name( 'A', 'C', 'T', 'N' );
362 363 Task_name[TASKID_SPIQ] = rtems_build_name( 'S', 'P', 'I', 'Q' );
@@ -379,6 +380,7 void create_names( void ) // create all
379 380
380 381 // rate monotonic period names
381 382 name_hk_rate_monotonic = rtems_build_name( 'H', 'O', 'U', 'S' );
383 name_avgv_rate_monotonic = rtems_build_name( 'A', 'V', 'G', 'V' );
382 384
383 385 misc_name[QUEUE_RECV] = rtems_build_name( 'Q', '_', 'R', 'V' );
384 386 misc_name[QUEUE_SEND] = rtems_build_name( 'Q', '_', 'S', 'D' );
@@ -568,6 +570,14 int create_all_tasks( void ) // create a
568 570 RTEMS_DEFAULT_ATTRIBUTES | RTEMS_FLOATING_POINT, &Task_id[TASKID_HOUS]
569 571 );
570 572 }
573 if (status == RTEMS_SUCCESSFUL) // AVGV
574 {
575 status = rtems_task_create(
576 Task_name[TASKID_AVGV], TASK_PRIORITY_AVGV, RTEMS_MINIMUM_STACK_SIZE,
577 RTEMS_DEFAULT_MODES,
578 RTEMS_DEFAULT_ATTRIBUTES | RTEMS_FLOATING_POINT, &Task_id[TASKID_AVGV]
579 );
580 }
571 581
572 582 return status;
573 583 }
@@ -723,6 +733,13 int start_all_tasks( void ) // start all
723 733 BOOT_PRINTF("in INIT *** Error starting TASK_HOUS\n")
724 734 }
725 735 }
736 if (status == RTEMS_SUCCESSFUL) // AVGV
737 {
738 status = rtems_task_start( Task_id[TASKID_AVGV], avgv_task, 1 );
739 if (status!=RTEMS_SUCCESSFUL) {
740 BOOT_PRINTF("in INIT *** Error starting TASK_AVGV\n")
741 }
742 }
726 743 if (status == RTEMS_SUCCESSFUL) // DUMB
727 744 {
728 745 status = rtems_task_start( Task_id[TASKID_DUMB], dumb_task, 1 );
@@ -421,7 +421,6 rtems_task avgv_task(rtems_task_argument
421 421 if (k == (MOVING_AVERAGE-1))
422 422 {
423 423 k = 0;
424 PRINTF("tick\n");
425 424 }
426 425 else
427 426 {
@@ -297,8 +297,6 int action_update_info(ccsdsTelecommandP
297 297 | (bytePosPtr[ BYTE_POS_UPDATE_INFO_PARAMETERS_SET1 ] & 1);
298 298
299 299 // REACTION_WHEELS_FREQUENCY, copy the incoming parameters in the local variable (to be copied in HK packets)
300
301 //cp_rpw_sc_rw_f_flags = bytePosPtr[ BYTE_POS_UPDATE_INFO_CP_RPW_SC_RW_F_FLAGS ];
302 300 getReactionWheelsFrequencies( TC );
303 301 set_hk_lfr_sc_rw_f_flags();
304 302 build_sy_lfr_rw_masks();
General Comments 0
You need to be logged in to leave comments. Login now