Hello! I have a question, in fact a doubt. I' am developing an aplication based on the dsk_app exemple(bsl/dsk_app) . In order to allocate dinamic memory i have modified the application so that i am no longer using edmaHwi as an interrupt neither processbuffer as a SWI. I have something like this :
while(1){
static Uint32 pingOrPong = PING; // Ping-pong state variable
static Int16 xmtdone = 0, rcvdone = 0;
/* Check CIPR to see which transfer completed */
if (EDMA_intTest(gXmtChan))
{
EDMA_intClear(gXmtChan);
xmtdone = 1;
}
if (EDMA_intTest(gRcvChan))
{
EDMA_intClear(gRcvChan);
rcvdone = 1;
}
/* If both transfers complete, signal processBufferSwi to handle */
if (xmtdone && rcvdone)
{
if (pingOrPong==PING)
{
// nrFrame= proceseaza_intrare(EC,gBufferRcvPing,BUFFSIZE,&caracteristici);
// LOG_printf(&trace,"%d",nrFrame);
copyData(gBufferRcvPing, gBufferXmtPing, BUFFSIZE);
pingOrPong = PONG;
}
else
{
//nrFrame= proceseaza_intrare(EC,gBufferRcvPing,BUFFSIZE,&caracteristici);
LOG_printf(&trace,"%d",nrFrame);
copyData(gBufferRcvPong, gBufferXmtPong, BUFFSIZE);
pingOrPong = PING;
rcvdone = 0;
xmtdone = 0;
}
Now, the question is: could i lose some samples? Is this ok ? Thank you very much!