Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
advLigoRTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CDS
software
advLigoRTS
Commits
adc343bc
Commit
adc343bc
authored
4 years ago
by
Rolf Bork
Browse files
Options
Downloads
Patches
Plain Diff
In process of fixing I/O mapping in mapVirtual.c for IOP models
without an I/O chassis. Not yet completed.
parent
efc14bfb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/fe/mapVirtual.c
+15
-2
15 additions, 2 deletions
src/fe/mapVirtual.c
with
15 additions
and
2 deletions
src/fe/mapVirtual.c
+
15
−
2
View file @
adc343bc
...
...
@@ -74,13 +74,13 @@ mapPciModules( CDS_HARDWARE* pCds )
int
i
,
ii
;
int
ret
;
int
modCount
=
0
;
// int fast_adc_cnt = 0;
#ifndef CONTROL_MODEL
int
adc_cnt
=
0
;
int
adc_cnt
=
0
;
#endif
int
dac_cnt
=
0
;
int
dac_18bit_cnt
=
0
;
int
dac_20bit_cnt
=
0
;
int
fast_adc_cnt
=
0
;
int
bo_cnt
=
0
;
int
use_it
;
char
fname
[
128
];
...
...
@@ -90,6 +90,17 @@ mapPciModules( CDS_HARDWARE* pCds )
dacdev
=
NULL
;
status
=
0
;
// Initialize CDS_HARDWARE Structure
pCds
->
adcCount
=
0
;
pCds
->
adc16Count
=
0
;
pCds
->
adc18Count
=
0
;
pCds
->
dacCount
=
0
;
pCds
->
dac16Count
=
0
;
pCds
->
dac18Count
=
0
;
pCds
->
dac20Count
=
0
;
pCds
->
dioCount
=
0
;
pCds
->
doCount
=
0
;
for
(
i
=
0
;
i
<
pCds
->
cards
;
i
++
)
{
if
(
pCds
->
cards_used
[
i
].
type
==
GSC_18AO8
)
...
...
@@ -151,6 +162,8 @@ mapPciModules( CDS_HARDWARE* pCds )
_device_shm
=
(
unsigned
char
*
)(
kmalloc_area
[
ret
]
);
pCds
->
pci_adc
[
adc_cnt
]
=
(
long
)
_device_shm
;
pCds
->
adcType
[
adc_cnt
]
=
GSC_16AI64SSA
;
pCds
->
adcInstance
[
adc_cnt
]
=
pCds
->
adc16Count
;
pCDS
->
adc16Count
++
;
pCds
->
adcChannels
[
adc_cnt
]
=
32
;
pCds
->
adcCount
++
;
data
=
(
int
*
)
pCds
->
pci_adc
[
adc_cnt
];
...
...
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