Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sequencer-2-2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
epics-modules
sequencer-2-2
Commits
9346d68a
Commit
9346d68a
authored
11 years ago
by
benjamin.franksen
Browse files
Options
Downloads
Patches
Plain Diff
cleaned up compatibility macros and moved them to one place in seqCom.h
parent
382f92fe
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/seq/seqCom.h
+13
-14
13 additions, 14 deletions
src/seq/seqCom.h
src/snc/gen_code.c
+1
-1
1 addition, 1 deletion
src/snc/gen_code.c
src/snc/gen_code.h
+2
-2
2 additions, 2 deletions
src/snc/gen_code.h
with
16 additions
and
17 deletions
src/seq/seqCom.h
+
13
−
14
View file @
9346d68a
...
...
@@ -41,8 +41,6 @@ extern "C" {
#define NOEVFLAG 0
/* argument to pvSync to remove sync */
#define DEFAULT_QUEUE_SIZE 100
/* default queue size (elements) */
#define DEFAULT_TIMEOUT 10.0
/* default timeout for SYNC operations */
/* I/O completion type (extra argument passed to seq_pvGet() and seq_pvPut()) */
...
...
@@ -53,17 +51,15 @@ enum compType {
};
typedef
struct
state_set
*
const
SS_ID
;
/* state set id, opaque */
typedef
struct
UserVar
SEQ_VARS
;
/* defined by program, opaque */
typedef
char
string
[
MAX_STRING_SIZE
];
/* the string typedef */
typedef
SEQ_VARS
USER_VAR
;
/* for compatibility */
typedef
struct
_seq_vars
SEQ_VARS
;
/* struct defined in generated code */
typedef
char
string
[
MAX_STRING_SIZE
];
/* representation of SNL string type */
/* these typedefs make the code more self documenting */
typedef
unsigned
EV_ID
;
/* identifier for an event */
typedef
unsigned
VAR_ID
;
/* identifier for a pv */
typedef
int
seqBool
;
typedef
struct
seqProgram
seqProgram
;
/* program object, opaqu
e */
typedef
struct
seqProgram
seqProgram
;
/* struct defined in generated cod
e */
/*
* Function declarations for interface between state program & sequencer.
...
...
@@ -82,8 +78,6 @@ epicsShareFunc pvStat seq_pvGetMultiple(SS_ID, VAR_ID,
unsigned
,
enum
compType
);
epicsShareFunc
seqBool
seq_pvGetQ
(
SS_ID
,
VAR_ID
);
epicsShareFunc
void
seq_pvFlushQ
(
SS_ID
,
VAR_ID
);
/* retain seq_pvFreeQ for compatibility */
#define seq_pvFreeQ seq_pvFlushQ
epicsShareFunc
pvStat
seq_pvPut
(
SS_ID
,
VAR_ID
,
enum
compType
,
double
tmo
);
epicsShareFunc
pvStat
seq_pvPutMultiple
(
SS_ID
,
VAR_ID
,
unsigned
,
enum
compType
);
...
...
@@ -109,11 +103,7 @@ epicsShareFunc seqBool seq_pvConnected(SS_ID, VAR_ID);
#define seq_pvIndex(ssId, varId) varId
#define seq_ssId(ssId) _seq_ss
#define seq_pVar(ssId) _seq_vars
/* for backwards compatibility */
#define ssId _seq_ss
#define pVar _seq_vars
#define seq_pVar(ssId) _seq_var
/* global operations */
epicsShareFunc
void
seq_pvFlush
(
SS_ID
);
...
...
@@ -135,6 +125,15 @@ epicsShareFunc void seqQueueShow(epicsThreadId);
epicsShareFunc
void
seqStop
(
epicsThreadId
);
epicsShareFunc
epicsThreadId
seq
(
seqProgram
*
,
const
char
*
,
unsigned
);
/* backwards compatibility macros */
/* DEPRECATED don't use in new code */
#define ssId _seq_ss
#define pVar _seq_var
#define USER_VAR SEQ_VARS
#define UserVar _seq_vars
#define seq_pvFreeQ seq_pvFlushQ
#define DEFAULT_QUEUE_SIZE 100
/* number of elements */
#ifdef __cplusplus
}
/* extern "C" */
#endif
...
...
This diff is collapsed.
Click to expand it.
src/snc/gen_code.c
+
1
−
1
View file @
9346d68a
...
...
@@ -152,7 +152,7 @@ static void gen_func_decls(Expr *prog)
}
}
/* Generate the
UserVar
struct containing all program variables with
/* Generate the struct containing all program variables with
'infinite' (global) lifetime. These are: variables declared at the
top-level, inside a state set, and inside a state. Note that state
set and state local variables are _visible_ only inside the block
...
...
This diff is collapsed.
Click to expand it.
src/snc/gen_code.h
+
2
−
2
View file @
9346d68a
...
...
@@ -20,8 +20,8 @@ void gen_defn_c_code(Expr *scope, int level);
void
gen_var_decl
(
Var
*
vp
);
void
indent
(
int
level
);
#define NM_VARS "
U
se
rV
ar"
#define NM_VARS_ARG "_seq_var
s
"
#define NM_VARS "
_
se
q_v
ar
s
"
#define NM_VARS_ARG "_seq_var"
#define NM_INITVAR "_seq_initvar_"
#define NM_CHANS "_seq_chans"
#define NM_STATES "_seq_states"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment