ICAROUS
All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Modules Pages
sch_platform_cfg.h
1/************************************************************************
2** File:
3** $Id: sch_platform_cfg.h 1.4 2017/06/21 15:28:58EDT mdeschu Exp $
4**
5** Copyright (c) 2007-2014 United States Government as represented by the
6** Administrator of the National Aeronautics and Space Administration.
7** All Other Rights Reserved.
8**
9** This software was created at NASA's Goddard Space Flight Center.
10** This software is governed by the NASA Open Source Agreement and may be
11** used, distributed and modified only pursuant to the terms of that
12** agreement.
13**
14** Purpose:
15** The CFS Scheduler (SCH) Application platform configuration header file
16**
17** Notes:
18**
19*************************************************************************/
20#ifndef _sch_platform_cfg_h_
21#define _sch_platform_cfg_h_
22
23
24
25/*************************************************************************
26** Macro definitions
27**************************************************************************/
28
39#define SCH_PIPE_DEPTH 12
41/*
42** Schedule table definitions...
43*/
53#define SCH_TOTAL_SLOTS 100 /* SCH wake-up rate (Hz) */
54
55
65#define SCH_ENTRIES_PER_SLOT 5
66
67
77#define SCH_MAX_MESSAGES 128
78
88#define SCH_MDT_MIN_MSG_ID 0
89
99#define SCH_MDT_MAX_MSG_ID CFE_SB_HIGHEST_VALID_MSGID
100
101
113#define SCH_MAX_MSG_WORDS 64 /* max message length (in words) */
114
115
116/*
117** Limits for how far we can get behind and how much we can do at once...
118*/
129#define SCH_MAX_LAG_COUNT (SCH_TOTAL_SLOTS / 2)
130
131
142#define SCH_MAX_SLOTS_PER_WAKEUP 5
143
144/*
145** Conversion factor for how many microseconds in a wake-up period...
146*/
156#define SCH_MICROS_PER_MAJOR_FRAME 1000000
157
158
170#define SCH_SYNC_SLOT_DRIFT_WINDOW 5000
171
172
185#define SCH_STARTUP_SYNC_TIMEOUT 50000
186
187
199#define SCH_STARTUP_PERIOD (5*SCH_MICROS_PER_MAJOR_FRAME)
200
201
202/*
203** Specifies the limit on the number of consecutive noisy Major Frame signals
204** before we begin to ignore them.
205*/
218#define SCH_MAX_NOISY_MAJORF 2
219
220
234#define SCH_LIB_PRESENCE 1
235
236
248#define SCH_LIB_DIS_CTR 0
249
250
263#define SCH_SCHEDULE_FILENAME "/cf/sch_def_schtbl.tbl"
264
265
278#define SCH_MESSAGE_FILENAME "/cf/sch_def_msgtbl.tbl"
279
280
295#define SCH_MISSION_REV 0
296
297
298#endif /* _sch_platform_cfg_h_ */
299
300/************************/
301/* End of File Comment */
302/************************/