-
Notifications
You must be signed in to change notification settings - Fork 56
/
cfe_psp_configdata.h
86 lines (75 loc) · 2.7 KB
/
cfe_psp_configdata.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
** GSC-18128-1, "Core Flight Executive Version 6.7"
**
** Copyright (c) 2006-2019 United States Government as represented by
** the Administrator of the National Aeronautics and Space Administration.
** All Rights Reserved.
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http:https://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
/**
* \file cfe_psp_configdata.h
*
* Created on: Dec 31, 2014
* Author: [email protected]
*/
#ifndef CFE_PSP_CONFIG_H_
#define CFE_PSP_CONFIG_H_
/* osapi.h is required for the definition of OS_VolumeInto_t */
#include "osapi.h"
/* cfe_psp.h is required for the definition of CFE_PSP_MemTable_t */
#include "cfe_psp.h"
/*
** PSP software version record
** (replaces PSP_*_VERSION macros)
*/
typedef const struct
{
uint8 MajorVersion;
uint8 MinorVersion;
uint8 Revision;
uint8 MissionRev;
const char *VersionString; /**< The simple semantic version identifier */
const char *VersionCodeName; /**< Cross-module compatiblity indicator */
uint32 BuildNumber;
} CFE_PSP_VersionInfo_t;
/**
* PSP/Hardware configuration parameters
* This structure should be instantiated by the PSP according
* such that other modules do not need to directly include
* the PSP configuration at compile time.
*/
typedef const struct
{
uint32 PSP_WatchdogMin; /**< PSP Minimum watchdog in milliseconds */
uint32 PSP_WatchdogMax; /**< PSP Maximum watchdog in milliseconds */
uint32 PSP_MemTableSize; /**< Size of PSP memory table */
uint32 PSP_ExceptionLogSize; /**< Size of PSP exception log */
CFE_PSP_MemTable_t *PSP_MemoryTable; /**< Pointer to PSP memory table (forward reference) */
/**
* Number of EEPROM banks on this platform
*/
uint32 HW_NumEepromBanks;
CFE_PSP_VersionInfo_t PSP_VersionInfo;
} Target_PspConfigData;
/**
* Extern reference to psp config struct.
* Allows the actual instantiation to be done outside this module
*/
extern Target_PspConfigData GLOBAL_PSP_CONFIGDATA;
/**
* Extern reference to the psp memory table
* Allows the actual instantiation to be done outside this module
*/
extern CFE_PSP_MemTable_t CFE_PSP_MemoryTable[];
#endif /* CFE_PSP_CONFIG_H_ */