资源简介
CSR8670芯片全部资料,有evm板的线路图和软件开发资料,csr8670是bluecore的soc芯片,针对ble,立体声蓝牙音响,低音炮,头戴耳机。在adk环境下开发。
代码片段和文件信息
/*
Copyright (C) Cambridge Silicon Radio Ltd. 2010 ~ 2012
An example app for routing audio through the Kalimba DSP from ADC to DAC
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
/* Define preprocessor GORDON to use the Gordon board otherwsie the Elvis board is assumed. */
/* #define GORDON */
#ifdef GORDON
#include
void PioSetPio (uint16 pPIO bool pOnOrOff);
#define GORDON_POWER_AMP_PIO 4
#endif
/* Define the macro “BYPASS_KALIMBA“ to bypasss Kalimba DSP otherwise direct ADC->DAC */
/* #define BYPASS_KALIMBA */
/* Define the macro “MIC_INPUT“ for microphon input otherwise line-in input */
/* #define MIC_INPUT */
/* Location of DSP kap file in the file system */
static const char kal[] = “my_second_dsp_app_kalimba/my_second_dsp_app_kalimba.kap“;
uint16 sampleRate = 44100;
void start_kalimba(void);
void connect_streams(void);
/* Main VM routine */
int main(void)
{
/* Load the Kalimba */
start_kalimba();
/* Connect up the ADCs and DACS */
connect_streams();
/* Start the Kalimba */
PanicFalse( KalimbasendMessage(KALIMBA_MSG_GO0000) );
/* Remain in MessageLoop (handles messages) */
MessageLoop();
return 0;
}
void start_kalimba(void)
{
/* Find the codec file in the file system */
FILE_INDEX index = FileFind( FILE_ROOT (const char *)kal strlen(kal) );
/* Did we find the desired file? */
PanicFalse( index != FILE_NONE );
/* Load the codec into Kalimba */
PanicFalse( KalimbaLoad( index ) );
}
void connect_streams(void)
{
/* Access left and right ADC and DAC */
Source audio_source_a = StreamAudioSource( AUDIO_HARDWARE_CODEC AUDIO_INSTANCE_0 AUDIO_CHANNEL_A );
Source audio_source_b = StreamAudioSource( AUDIO_HARDWARE_CODEC AUDIO_INSTANCE_0 AUDIO_CHANNEL_B );
Sink audio_sink_a = StreamAudioSink( AUDIO_HARDWARE_CODEC AUDIO_INSTANCE_0 AUDIO_CHANNEL_A );
Sink audio_sink_b = StreamAudioSink( AUDIO_HARDWARE_CODEC AUDIO_INSTANCE_0 AUDIO_CHANNEL_B );
/* Configure sampling rate for both channels and synchronise left and right channels */
PanicFalse( SourceConfigure(audio_source_a STREAM_CODEC_INPUT_RATE sampleRate) );
PanicFalse( SourceConfigure(audio_source_b STREAM_CODEC_INPUT_RATE sampleRate) );
PanicFalse( SourceSynchronise(audio_source_a audio_source_b) );
PanicFalse( SinkConfigure(audio_sink_a STREAM_CODEC_OUTPUT_RATE sampleRate) );
PanicFalse( SinkConfigure(audio_sink_b STREAM_CODEC_OUTPUT_RATE sampleRate) );
PanicFalse( SinkSynchronise(audio_sink_a audio_sink_b) );
/* Set up codec gains */
#ifdef MIC_INPUT
PanicFalse( SourceConfigure(audio_source_a STREAM_CODEC_MIC_INPUT_GAIN_ENABLE 1) );
PanicFalse( Sou
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2014-03-27 19:47 CSR8670\
目录 0 2014-03-27 19:45 CSR8670\ADK2.0\
文件 619176 2012-05-11 10:11 CSR8670\ADK2.0\CS-101500-UGP8_XIDEUserGuide.pdf
文件 852137 2012-05-11 10:12 CSR8670\ADK2.0\CS-114287-ANP6MySecondKalimbaApp.pdf
文件 5836006 2012-05-24 23:07 CSR8670\ADK2.0\CS-227086-DC-1-ADK_2.0_Software_Training.pdf
文件 999805 2013-09-04 21:15 CSR8670\ADK2.0\How_To_Writing_BlueCore_Applications.pdf
目录 0 2014-03-27 19:45 CSR8670\ADK2.0\my_second_dsp_app\
文件 865 2012-05-11 10:10 CSR8670\ADK2.0\my_second_dsp_app\buildPrivateLib_bc5.bat
文件 856 2012-05-11 10:10 CSR8670\ADK2.0\my_second_dsp_app\buildPrivateLib_bc7.bat
目录 0 2014-03-27 19:45 CSR8670\ADK2.0\my_second_dsp_app\depend\
文件 6 2013-09-07 19:36 CSR8670\ADK2.0\my_second_dsp_app\depend\dsp.arch
文件 313 2013-09-07 19:36 CSR8670\ADK2.0\my_second_dsp_app\depend\flags.compile
文件 52 2013-09-07 19:36 CSR8670\ADK2.0\my_second_dsp_app\depend\flags.li
文件 80 2013-09-07 19:36 CSR8670\ADK2.0\my_second_dsp_app\depend\flags.merge
文件 0 2013-09-07 19:36 CSR8670\ADK2.0\my_second_dsp_app\depend\image.lst
文件 0 2013-09-07 19:36 CSR8670\ADK2.0\my_second_dsp_app\depend\main
文件 249 2013-09-07 19:35 CSR8670\ADK2.0\my_second_dsp_app\depend\my_second_dsp_app_kalimba.asm.flags
文件 0 2013-09-07 19:35 CSR8670\ADK2.0\my_second_dsp_app\depend\my_second_dsp_app_kalimba.kap.flags
文件 419 2013-09-07 19:35 CSR8670\ADK2.0\my_second_dsp_app\depend\my_second_dsp_app_kalimba.li
文件 77 2012-05-11 10:10 CSR8670\ADK2.0\my_second_dsp_app\fir_bc5.li
文件 77 2012-05-11 10:10 CSR8670\ADK2.0\my_second_dsp_app\fir_bc7.li
文件 4191 2012-05-11 10:10 CSR8670\ADK2.0\my_second_dsp_app\fir_filter.asm
文件 1502 2012-05-11 10:10 CSR8670\ADK2.0\my_second_dsp_app\fir_hp_coeffs.dat
文件 5117 2012-05-11 10:10 CSR8670\ADK2.0\my_second_dsp_app\main.c
文件 15475 2012-05-11 10:10 CSR8670\ADK2.0\my_second_dsp_app\my_second_dsp_app.asm
文件 952 2013-09-07 19:36 CSR8670\ADK2.0\my_second_dsp_app\my_second_dsp_app.release.mak
文件 1076 2013-09-07 19:36 CSR8670\ADK2.0\my_second_dsp_app\my_second_dsp_app.xip
文件 121 2012-05-11 10:10 CSR8670\ADK2.0\my_second_dsp_app\my_second_dsp_app.xiw
文件 916 2013-09-07 19:36 CSR8670\ADK2.0\my_second_dsp_app\my_second_dsp_app_kalimba.release.mak
文件 720 2013-09-07 19:35 CSR8670\ADK2.0\my_second_dsp_app\my_second_dsp_app_kalimba.xip
文件 1178 2012-05-11 10:10 CSR8670\ADK2.0\my_second_dsp_app\user_code.h
............此处省略46个文件信息
- 上一篇:SecureCRT 7.3.4破解版(含注册机)
- 下一篇:《微机原理》
相关资源
- CSR配置软件
- CSR BlueSuite 2.6.2.exe
- CSRNet-pytorch.zip
- CSRFTester-1.0内附链接.zip
- CSR8675 I2S输入配置
- CSR(中文版)蓝牙应用程序编程手册
- CSR蓝牙应用程序编程手册中文版
- CC2530+HCSR04超声波测距
- CSR I2S as Wired Input in ADK Applications Not
- HCSR501的电路图
- CSR ADK程序开发指南
- Audio Sink Application Configuration User Guid
- CSRFTester-1.0.zip
- stm32f103rc_hcsr04.rar
- 注入CSRSS 亲测有效 不蓝屏
- 论文研究 - 信息策略和认知需求NFC对
- csr8670做AG的源代码
- CSRFTester-1.0
- csr蓝牙驱动
- ORICO BTA-401/402/403/406/407蓝牙4.0驱动程序
- csr3020的原理图
- 基于STM32F103ZET6的HCSR04的超声波测距并
- CSR6145 BOM表格
- CSR8670C BGA DataSheet.pdf
- AJP及CSRF漏洞描述及处理方案
- 一个基于LFSR和FCSR的序列密码系统
- CC2530+DHT11+HCSR04+蜂鸣器+串口显示=简单
- 几种XSS和CSRF原理解析与demo演示
- CSR GPS GSD4e_WLCSP_DataSheet与原理图
评论
共有 条评论