summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0451c42)
raw | patch | inline | side by side (parent: 0451c42)
author | Chitresh Gupta <chitresh.g@pathpartnertech.com> | |
Thu, 9 Nov 2017 07:33:16 +0000 (13:03 +0530) | ||
committer | Chitresh Gupta <chitresh.g@pathpartnertech.com> | |
Thu, 9 Nov 2017 07:33:16 +0000 (13:03 +0530) |
index cb22f203900e773669ad3ccd604cbd74b43c0d20..b02a403b10817134069fa461fa47543bd8f8be62 100644 (file)
//#include "dbgBenchmark.h" // PCM high-sampling rate + SRC + CAR benchmarking
-//#define CB_RW_OP_CAP_PP // debug
+//#define CB_RW_OP_CAP_PP 1// debug
#ifdef CB_RW_OP_CAP_PP
#define CB_OP_NONE 0
#define CB_OP_W 1 // ARM write
#define CB_OP_R 2 // DSP read
-#define CB_OP_COUNT_MAX 10000
+#define CB_OP_COUNT_MAX 15000
#endif
// CB control
diff --git a/pasdk/test_arm/framework/aspDecOpCircBuf_slave.c b/pasdk/test_arm/framework/aspDecOpCircBuf_slave.c
index 0cc35f09626769fc6f2c95defc60273e8115c3ca..a5025e0e5005e32d7b130ad19292c72957375925 100644 (file)
}
Cache_wait();
-#if 0 // (***) FL: shows timing of CB write
+#if 0 // also for CB_RW_OP_CAP_PP (***) FL: shows timing of CB write
// debug
{
static Uint8 toggleState = 0;
diff --git a/pasdk/test_arm/framework/audioStreamDecodeProc.c b/pasdk/test_arm/framework/audioStreamDecodeProc.c
index 1b12149a5224391832ef6a7f41d7e68a07aade62..23ea1dbc16442f20be61949eb94034a62a113093 100644 (file)
//#define CAPTURE_DECODER_OUTSAMPLES_PP
#ifdef CAPTURE_DECODER_OUTSAMPLES_PP
-#define CAP_FRAME_MAX 2000
+#define CAP_FRAME_MAX 10000
Uint32 tempCap_frameCnt = 0;
int tempCap_decSampleOut[CAP_FRAME_MAX] = {0};
#endif
if (tempCap_frameCnt < CAP_FRAME_MAX)
{
tempCap_decSampleOut[tempCap_frameCnt] = pAfWrt->sampleCount;
+ // alternative toggle
+ {
+ static Uint8 toggleState = 0;
+ if (toggleState == 0)
+ GPIOSetOutput(GPIO_PORT_1, GPIO_PIN_25);
+ else
+ GPIOClearOutput(GPIO_PORT_1, GPIO_PIN_25);
+ toggleState = ~(toggleState);
+ }
tempCap_frameCnt++;
}
#endif
diff --git a/pasdk/test_dsp/framework/aspDecOpCircBuf_master.c b/pasdk/test_dsp/framework/aspDecOpCircBuf_master.c
index 870e476f8213d1216e2b4003e8f88f2d35d97964..06c8957365b4d63f76c2a5a4a7122a6a3175079f 100644 (file)
cbReadMuteWithLastAfInfo(pCb, pAfRd);
//SW_BREAKPOINT; // debug
-#if 1 // (***) FL: shows timing of CB underflow
+#if 1 // also for CB_RW_OP_CAP_PP (***) FL: shows timing of CB underflow
// debug
{
static Uint8 toggleState = 0;
// Mute output on underflow
cbReadMuteWithLastAfInfo(pCb, pAfRd);
-#if 1 // (***) FL: shows timing of CB underflow
+#if 1 // also for CB_RW_OP_CAP_PP (***) FL: shows timing of CB underflow
// debug
{
static Uint8 toggleState = 0;
// Read AF complete, update Last CB AF Info
cbUpdateLastAfInfo(pCb, pAfRd);
-#if 0 // (***) FL: shows timing of successful CB read
+#if 0 // also for CB_RW_OP_CAP_PP (***) FL: shows timing of successful CB read
{
static Uint8 toggleState = 0;
if (toggleState == 0)