Skip to content

Commit

Permalink
runtime/bridge: factor rtio_init
Browse files Browse the repository at this point in the history
sbourdeauducq committed May 2, 2015
1 parent 050db0b commit d8fdac6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions soc/runtime/bridge.c
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ void bridge_main(void)
{
struct msg_base *umsg;

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

msg = (struct msg_brg_ttl_out *)umsg;
rtio_init();
rtio_set_oe(rtio_get_counter() + 8000, msg->channel, msg->value);
mailbox_acknowledge();
break;
@@ -33,7 +33,6 @@ void bridge_main(void)
struct msg_brg_ttl_out *msg;

msg = (struct msg_brg_ttl_out *)umsg;
rtio_init();
rtio_set_o(rtio_get_counter() + 8000, msg->channel, msg->value);
mailbox_acknowledge();
break;
@@ -75,7 +74,6 @@ void bridge_main(void)
break;
}
case MESSAGE_TYPE_BRG_DDS_FUD:
rtio_init();
rtio_fud(rtio_get_counter() + 8000);
mailbox_acknowledge();
break;

0 comments on commit d8fdac6

Please sign in to comment.