在逗猫棒的基础上实现蓝牙转USB功能,目前功能已经实现,还需裁剪掉之前逗猫棒的业务程序
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
#include "audio_online_debug.h"
|
||||
#include "system/includes.h"
|
||||
#include "generic/list.h"
|
||||
#include "aud_mic_dut.h"
|
||||
#include "aud_data_export.h"
|
||||
#include "aud_spatial_effect_dut.h"
|
||||
#include "board_config.h"
|
||||
|
||||
typedef struct {
|
||||
struct list_head parser_head;
|
||||
|
||||
} aud_online_ctx_t;
|
||||
aud_online_ctx_t *aud_online_ctx = NULL;
|
||||
|
||||
int audio_online_debug_init(void)
|
||||
{
|
||||
//aud_online_ctx = zalloc(sizeof(aud_online_ctx_t));
|
||||
if (aud_online_ctx) {
|
||||
//INIT_LIST_HEAD(&aud_online_ctx->parser_head);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
int audio_online_debug_open()
|
||||
{
|
||||
/*空间音频陀螺仪数据导出*/
|
||||
#if (TCFG_SENSOR_DATA_EXPORT_ENABLE == SENSOR_DATA_EXPORT_USE_SPP)
|
||||
aud_data_export_open();
|
||||
#endif /*TCFG_SENSOR_DATA_EXPORT_ENABLE*/
|
||||
|
||||
/*麦克风测试*/
|
||||
#if (defined(TCFG_AUDIO_MIC_DUT_ENABLE) && (TCFG_AUDIO_MIC_DUT_ENABLE == 1))
|
||||
aud_mic_dut_open();
|
||||
#endif/*TCFG_AUDIO_MIC_DUT_ENABLE*/
|
||||
|
||||
/*空间音效在线调试*/
|
||||
#if (defined(TCFG_SPATIAL_EFFECT_ONLINE_ENABLE) && (TCFG_SPATIAL_EFFECT_ONLINE_ENABLE == 1))
|
||||
aud_spatial_effect_dut_open();
|
||||
#endif /*(defined(TCFG_SPATIAL_EFFECT_ONLINE_ENABLE) && (TCFG_SPATIAL_EFFECT_ONLINE_ENABLE == 1))*/
|
||||
return 0;
|
||||
}
|
||||
__initcall(audio_online_debug_open);
|
||||
|
||||
int audio_online_debug_close()
|
||||
{
|
||||
if (aud_online_ctx) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user