Commit 65d126a6 authored by jdelange's avatar jdelange

* aadlv2/ping/ping.c

   - Example to handle multiple buses



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@4887 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent ca97f276
......@@ -4,6 +4,17 @@ int p=0;
void user_do_ping_spg (int *v)
{
#ifdef MULTIPLE_BUSES
#include <deployment.h>
if ( ( p % 2 ) == 0)
{
__po_hi_transport_associate_port_bus (ping_me_global_data_sink, bus_first_bus);
}
else
{
__po_hi_transport_associate_port_bus (ping_me_global_data_sink, bus_second_bus);
}
#endif
printf ("*** SENDING PING *** %d\n", p);
*v=p;
p++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment