Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
1d86c9d5
Commit
1d86c9d5
authored
May 16, 2015
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/dev_io/dev_io_cfg.c: add conditional SMIO spwaning to ML605
parent
87f6b49a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
dev_io_cfg.c
src/dev_io/dev_io_cfg.c
+9
-7
No files found.
src/dev_io/dev_io_cfg.c
View file @
1d86c9d5
...
...
@@ -176,8 +176,6 @@ int main (int argc, char *argv[])
devio_service_str
[
DEVIO_SERVICE_LEN
-
1
]
=
'\0'
;
/* Just in case ... */
devio_t
*
devio
=
devio_new
(
devio_service_str
,
dev_entry
,
llio_type
,
broker_endp
,
verbose
,
log_file_name
);
/* devio_t *devio = devio_new ("BPM0:DEVIO", *str_p, llio_type,
"tcp://localhost:5555", verbose); */
if
(
devio
==
NULL
)
{
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_FATAL
,
"[dev_io] devio_new error!
\n
"
);
...
...
@@ -269,13 +267,17 @@ err_register_sm:
static
devio_err_e
_spawn_be_platform_smios
(
devio_t
*
devio
)
{
uint32_t
afc_diag_id
=
0x51954750
;
devio_err_e
err
=
DEVIO_SUCCESS
;
/* ML605 or AFCv3 */
#if defined (__BOARD_ML605__) || defined (__BOARD_AFCV3__)
/* ML605 specific */
#if defined (__BOARD_ML605__)
(
void
)
devio
;
goto
err_register_sm
;
/* AFCv3 spefific */
#if defined (__BOARD_AFCV3__)
#elif defined (__BOARD_AFCV3__)
uint32_t
afc_diag_id
=
0x51954750
;
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_INFO
,
"[dev_io] Spawning AFCv3 specific SMIOs ...
\n
"
);
err
=
devio_register_sm
(
devio
,
afc_diag_id
,
WB_AFC_DIAG_BASE_ADDR
,
0
);
...
...
@@ -283,7 +285,7 @@ static devio_err_e _spawn_be_platform_smios (devio_t *devio)
DBE_DEBUG
(
DBG_DEV_IO
|
DBG_LVL_FATAL
,
"[dev_io] devio_register_sm error!
\n
"
);
goto
err_register_sm
;
}
#endif
#else
#error "BE FPGA Board not supported!"
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment