Skip to content

Commit d8fdac6

Browse files
committedMay 2, 2015
runtime/bridge: factor rtio_init
1 parent 050db0b commit d8fdac6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

Diff for: ‎soc/runtime/bridge.c

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ void bridge_main(void)
1616
{
1717
struct msg_base *umsg;
1818

19+
rtio_init();
1920
send_ready();
2021
while(1) {
2122
umsg = mailbox_wait_and_receive();
@@ -24,7 +25,6 @@ void bridge_main(void)
2425
struct msg_brg_ttl_out *msg;
2526

2627
msg = (struct msg_brg_ttl_out *)umsg;
27-
rtio_init();
2828
rtio_set_oe(rtio_get_counter() + 8000, msg->channel, msg->value);
2929
mailbox_acknowledge();
3030
break;
@@ -33,7 +33,6 @@ void bridge_main(void)
3333
struct msg_brg_ttl_out *msg;
3434

3535
msg = (struct msg_brg_ttl_out *)umsg;
36-
rtio_init();
3736
rtio_set_o(rtio_get_counter() + 8000, msg->channel, msg->value);
3837
mailbox_acknowledge();
3938
break;
@@ -75,7 +74,6 @@ void bridge_main(void)
7574
break;
7675
}
7776
case MESSAGE_TYPE_BRG_DDS_FUD:
78-
rtio_init();
7977
rtio_fud(rtio_get_counter() + 8000);
8078
mailbox_acknowledge();
8179
break;

0 commit comments

Comments
 (0)
Please sign in to comment.