index 43327b34661badfbe9151895e6ede5ccd29617e3..08c4ba815bd13d19e5bd6997a4e3f43e107be43f 100644 (file)
--- a/pasdk/test_dsp/mib/mib.c
+++ b/pasdk/test_dsp/mib/mib.c
/*
-Copyright (c) 2016, Texas Instruments Incorporated - http://www.ti.com/
+Copyright (c) 2017, Texas Instruments Incorporated - http://www.ti.com/
All rights reserved.
* Redistribution and use in source and binary forms, with or without
typedef xdc_Char SmInt;
typedef xdc_UChar SmUns;
-#define SW_BREAKPOINT asm( " SWBP 0" );
extern const ti_sysbios_heaps_HeapMem_Handle heapMemDdr3;
#define HEAPMALLOC (IHeap_Handle)heapMemDdr3
#define min(a, b) (((a) < (b)) ? (a) : (b))
#define max(a, b) (((a) > (b)) ? (a) : (b))
+// FL: (***) debug
+#include "evmc66x_gpio_dbg.h"
+
// -----------------------------------------------------------------------------
inline void IncrementPtr (PAF_InpBufConfig *pBufConfig, Ptr *pPtr, int numWords)
if (status)
return status;
+#if 0 // (***) FL: shows timing of Input Rx SIO reclaim during autodet
+ // (***) debug // B5
+ {
+ static Uint8 toggleState = 0;
+ if (toggleState == 0)
+ GPIOSetOutput(GPIO_PORT_0, GPIO_PIN_99);
+ else
+ GPIOClearOutput(GPIO_PORT_0, GPIO_PIN_99);
+ toggleState = ~(toggleState);
+ }
+#endif
+
// get next block of data to scan
status = DIB_FTABLE_waitForData (device, pBufConfig, syncBufSize);
if (status)
return status;
-
+
// this function updates the tail pointer
status = DIB_FTABLE_syncScan (device, pBufConfig, &timeout);
if (status)
@@ -1117,10 +1131,8 @@ Int DIB_issueChild (DEV2_Handle device, PAF_InpBufConfig *pBufConfig, int size,
// the buffer is a multiple of 8 and so, by using this single statement, we
// ensure all requests are a mulitple 8 even if they need to be split across
// the buffer wrap point.
-
- /* GJ: The below is dMAX specific & unnecessary now w/ EDMA*/
- //if (pBufConfig->stride == 8)
- //size = (size + 7) & ~0x7;
+ if (pBufConfig->stride == 8)
+ size = (size + 7) & ~0x7;
// convert to bytes
size *= pBufConfig->sizeofElement;