Skip to content

Commit d026bfd

Browse files
authored
Merge pull request #480 from jphickey/fix-435-add-hold
Fix #435, simplify state machines and add holdover
2 parents 983f6ad + c3fc812 commit d026bfd

35 files changed

Lines changed: 1789 additions & 900 deletions

config/default_cf_extern_typedefs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ typedef enum
7878
CF_QueueIdx_HIST = 4,
7979
CF_QueueIdx_HIST_FREE = 5,
8080
CF_QueueIdx_FREE = 6,
81-
CF_QueueIdx_NUM = 7,
81+
CF_QueueIdx_NUM = 7
8282
} CF_QueueIdx_t;
8383

8484
/**

config/default_cf_internal_cfg.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,6 @@
1616
* See the License for the specific language governing permissions and
1717
* limitations under the License.
1818
************************************************************************/
19-
/************************************************************************
20-
* NASA Docket No. GSC-18,920-1, and identified as “Core Flight
21-
* System (cFS) Health & Safety (CF) Application version 2.4.1”
22-
*
23-
* Copyright (c) 2021 United States Government as represented by the
24-
* Administrator of the National Aeronautics and Space Administration.
25-
* All Rights Reserved.
26-
*
27-
* Licensed under the Apache License, Version 2.0 (the "License"); you may
28-
* not use this file except in compliance with the License. You may obtain
29-
* a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
30-
*
31-
* Unless required by applicable law or agreed to in writing, software
32-
* distributed under the License is distributed on an "AS IS" BASIS,
33-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34-
* See the License for the specific language governing permissions and
35-
* limitations under the License.
36-
************************************************************************/
3719

3820
/**
3921
* @file

config/default_cf_tbldefs.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ typedef struct CF_ChannelConfig
7878
char move_dir[OS_MAX_PATH_LEN]; /**< \brief Move directory if not empty */
7979
} CF_ChannelConfig_t;
8080

81-
8281
/*
8382
* Previously, the entire definition of the CF table was in this file, now it is split.
8483
* For backward compatibility with existing CF table definitions, include the other part here.

config/default_cf_tblstruct.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ typedef struct CF_ConfigTable
4848

4949
CF_ChannelConfig_t chan[CF_NUM_CHANNELS]; /**< \brief Channel configuration */
5050

51-
uint16 outgoing_file_chunk_size; /**< \brief maximum size of outgoing file data chunk in a PDU.
52-
* Limited by CF_MAX_PDU_SIZE minus the PDU header(s) */
53-
char tmp_dir[CF_FILENAME_MAX_PATH]; /**< \brief directory to put temp files */
51+
uint16 outgoing_file_chunk_size; /**< \brief maximum size of outgoing file data chunk in a PDU.
52+
* Limited by CF_MAX_PDU_SIZE minus the PDU header(s) */
53+
char tmp_dir[CF_FILENAME_MAX_PATH]; /**< \brief directory to put temp files */
5454
char fail_dir[CF_FILENAME_MAX_PATH]; /**< \brief fail directory */
5555
} CF_ConfigTable_t;
5656

fsw/inc/cf_events.h

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,19 @@
490490
*/
491491
#define CF_CFDP_CLOSE_ERR_EID (68)
492492

493+
/**
494+
* \brief CF No chunklist available
495+
*
496+
* \par Type: ERROR
497+
*
498+
* \par Cause:
499+
*
500+
* Engine has aborted a transaction due to lack of an
501+
* available resource to track the chunks associated
502+
* with the file.
503+
*/
504+
#define CF_CFDP_NO_CHUNKLIST_AVAIL_EID 88
505+
493506
/**************************************************************************
494507
* CF_CFDP_R event IDs - Engine receive
495508
*/
@@ -710,6 +723,19 @@
710723
*/
711724
#define CF_CFDP_R_INACT_TIMER_ERR_EID (88)
712725

726+
/**
727+
* \brief CF No chunklist available
728+
*
729+
* \par Type: ERROR
730+
*
731+
* \par Cause:
732+
*
733+
* Engine has aborted a transaction due to lack of an
734+
* available resource to track the chunks associated
735+
* with the file.
736+
*/
737+
#define CF_CFDP_NO_CHUNKLIST_AVAIL_EID 88
738+
713739
/**************************************************************************
714740
* CF_CFDP_S event IDs - Engine send
715741
*/

0 commit comments

Comments
 (0)