Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tapasco
tapasco
Commits
e63deaf5
Commit
e63deaf5
authored
Feb 02, 2018
by
Jaco Hofmann
Browse files
Recognize separate IAR status and IAR ACK registers
parent
4f219431
Pipeline
#231
passed with stage
in 3 minutes and 43 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
arch/axi4mm/src/tapasco_address_map.c
View file @
e63deaf5
...
...
@@ -55,6 +55,8 @@ tapasco_reg_addr_t tapasco_address_map_func_reg(tapasco_dev_ctx_t *dev_ctx,
return
platform_address_get_slot_base
(
slot_id
,
0
)
+
0x0c
;
case
TAPASCO_FUNC_REG_RETURN
:
return
platform_address_get_slot_base
(
slot_id
,
0
)
+
0x10
;
case
TAPASCO_FUNC_REG_IAR_ACK
:
return
platform_address_get_slot_base
(
slot_id
,
0
)
+
0x1c
;
default:
return
0
;
}
...
...
arch/common/include/tapasco_address_map.h
View file @
e63deaf5
...
...
@@ -36,8 +36,10 @@ typedef enum {
TAPASCO_FUNC_REG_BASE
,
/** Control register (start). */
TAPASCO_FUNC_REG_CONTROL
,
/** Function interrupt
acknowledge
register (if any). */
/** Function interrupt
status
register (if any). */
TAPASCO_FUNC_REG_IAR
,
/** Function interrupt acknowledge register (if any). */
TAPASCO_FUNC_REG_IAR_ACK
,
/** Register with return value of function (if any). */
TAPASCO_FUNC_REG_RETURN
}
tapasco_func_reg_t
;
...
...
arch/common/src/tapasco_functions.c
View file @
e63deaf5
...
...
@@ -107,7 +107,7 @@ void tapasco_functions_setup_system(tapasco_dev_ctx_t *dev_ctx, tapasco_function
slot_id
,
TAPASCO_FUNC_REG_IAR
),
sizeof
(
d
),
&
d
,
PLATFORM_CTL_FLAGS_NONE
);
platform_write_ctl
(
tapasco_address_map_func_reg
(
dev_ctx
,
slot_id
,
TAPASCO_FUNC_REG_IAR
),
sizeof
(
d
),
&
d
,
slot_id
,
TAPASCO_FUNC_REG_IAR
_ACK
),
sizeof
(
d
),
&
d
,
PLATFORM_CTL_FLAGS_NONE
);
d
=
1
;
}
...
...
arch/common/src/tapasco_scheduler.c
View file @
e63deaf5
...
...
@@ -127,7 +127,7 @@ tapasco_res_t tapasco_scheduler_launch(
// ack the interrupt
if
(
platform_write_ctl
(
tapasco_address_map_func_reg
(
dev_ctx
,
slot_id
,
TAPASCO_FUNC_REG_IAR
),
sizeof
(
start_cmd
),
&
start_cmd
,
TAPASCO_FUNC_REG_IAR
_ACK
),
sizeof
(
start_cmd
),
&
start_cmd
,
PLATFORM_CTL_FLAGS_NONE
)
!=
PLATFORM_SUCCESS
)
return
TAPASCO_FAILURE
;
...
...
Jaco Hofmann
@jah
mentioned in commit
cd079c31
·
Feb 02, 2018
mentioned in commit
cd079c31
mentioned in commit cd079c314d2b2ceec88a55beceaeb9b67dc9c68e
Toggle commit list
Jens Korinth
@jk
mentioned in commit
17f0d672
·
Mar 05, 2018
mentioned in commit
17f0d672
mentioned in commit 17f0d67240ebf5d7e1d0be9162d272b04256c47d
Toggle commit list
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