summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 06dd25d)
raw | patch | inline | side by side (parent: 06dd25d)
author | Ming Wei <a0868762@ti.com> | |
Tue, 17 Jan 2017 19:36:46 +0000 (13:36 -0600) | ||
committer | Ming Wei <a0868762@ti.com> | |
Tue, 17 Jan 2017 19:36:46 +0000 (13:36 -0600) |
Signed-off-by: Ming Wei <a0868762@ti.com>
realtime_demo_bios/k2g/include/mcasp_cfg.h | patch | blob | history | |
realtime_demo_bios/k2g/src/makefile.libs | patch | blob | history | |
realtime_demo_bios/k2g/src/mcasp_cfg.c | patch | blob | history |
diff --git a/realtime_demo_bios/k2g/include/mcasp_cfg.h b/realtime_demo_bios/k2g/include/mcasp_cfg.h
index 2d5e96d603aea4b1b97bcdeeadea5c2bbe93a1b2..d6f4cbcd0e744a7f2fd7e19cd71a583657beaed8 100644 (file)
* In addition, the buffer should be of a size multiple of 128 bytes for\r
* the cache work optimally on the C6x.\r
*/\r
-#define BUFLEN (960) /* Number of samples in the frame */\r
+#define BUFLEN ((SYS_ADC_FS_HZ/1000)*SYS_FRAME_DURATION_MS*2) /* Number of samples in the frame */\r
#define BUFALIGN (128) /* Alignment of buffer for use of L2 cache */\r
\r
/** Number of serializers configured for Rx */\r
index db1526ede2757f117267535fef53b9f496f01b7a..624c2385645dd92c2011b88d000ad1bb55794ebd 100644 (file)
#
# This file was generated based on the configuration script:
-# C:\ti\processor_sdk_rtos_k2g_3_02_00_05\demos\audio-preprocessing\realtime_demo_bios\k2g\audioAnalogLoopbackTest.cfg
+# C:\ti\processor_sdk_rtos_k2g_3_03_00_00\demos\audio-preprocessing\realtime_demo_bios\k2g\audioAnalogLoopbackTest.cfg
#
# This makefile may be included in other makefiles that need to build
# the libraries containing the compiled source files generated as
#
# The absolute path to the generated source directory (at the time the
# sources were generated) is:
-# C:\ti\processor_sdk_rtos_k2g_3_02_00_05\demos\audio-preprocessing\realtime_demo_bios\k2g\src
+# C:\ti\processor_sdk_rtos_k2g_3_03_00_00\demos\audio-preprocessing\realtime_demo_bios\k2g\src
#
GEN_SRC_DIR ?= ../src
index 44a23b74ae78aa2dd29b675ad7ad18326e9ec14c..7e9d322574544d524dc872350b422f815fba6523 100644 (file)
/* .xstat = */ 0x000001FF, /* reset any existing status bits */\r
/* .xevtctl = */ 0x00000000, /* DMA request is enabled or disabled */\r
{\r
+#if (SYS_ADC_FS_HZ==16000)\r
+ /* .aclkxctl = */ 0X000000E3, /* Bit CLK Pol: falling edge, ASYNC is 1, ACLKX is internal, HF CLK to BCLK divider is 4 */\r
+#else\r
/* .aclkxctl = */ 0X000000E7, /* Bit CLK Pol: falling edge, ASYNC is 1, ACLKX is internal, HF CLK to BCLK divider is 8 */\r
+#endif\r
/* .ahclkxctl = */ 0x00000000, /* AHCLKX is external */\r
/* .xclkchk = */ 0x00000000\r
},\r