hi everybody,
we are currently trying to implement FIFOs for communication from GPP<->DSP and
DSP<->DSP using CHNL. (we are developing on linux!)
when running this example: "GPP -> DSP -> GPP" everything works fine. this is
how we go about on the GPP side:
+ creates input/output channel with CHNL_create("dio_dsplink#")
+ allocate one buffer with CHNL_allocateBuffer()
+ the first GPP task does this on the output channel:
+ CHNL_issue()
+ CHNL_reclaim()
+ the second GPP task does this on the input channel:
+ CHNL_issue()
+ CHNL_reclaim()
now the DSP side:
+ create one input and one output channel with SIE_create("dio_dsplink#")
+ allocate one buffer with POOL_alloc()
+ this is how the input and output stuff is handled:
+ SIO_issue(inputstream, buffer);
+ SIO_reclaim(inputstream, buffer);
+ // PLACE1 //
+ SIO_issue(outputstream, buffer);
+ SIO_reclaim(outputstream, buffer);
(i ll skip the cleanup code)
how the problems/question.
1) i created two tasks on the DSP and splitted at the PLACE1 marker in my
previous application. receiving buffers from GPP works like before but i cannot
send correctly. i manage to send "something" to the GPP. buffer size is zero
and a CHNL_E_EOS (end of stream was already requested on this output channel)
is returned.
what would be the correct way (maybe in form of function calls) to send
something from DSP to GPP using CHNL?
2) additionally, i am trying to implement DSP-side communication only, using
CHNL again.
when creating the channel with CHNL_create() what would be the device name?
thx for any help
best regards