Megaphone_Attention.c 753 字节
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "JZsdkLib.h"
#include "JZsdk_Hal.h"

#include "BaseConfig.h"
#include "UI_control/UI_control.h"
#include "DeviceInfo/DeviceInfo.h"

#ifdef MEGAPHONE_CONFIG_STATUS_ON
    #include "Megaphone/Megaphone.h"
#endif

T_JZsdkReturnCode Megphone_Attention()
{
    //hal加载
    JZsdk_LibInit(JZ_FLAGCODE_OFF);

    //如果是喊话器设备
#ifdef MEGAPHONE_CONFIG_STATUS_ON

    //引脚初始化
    Ircut_Init();

    //设备信息初始化
    DeviceInfo_Init();

    //音频库初始化
    AudioDeal_Init();
    
    //喊话器初始化
    Megaphone_Init();    

    //播放声音
    AttentionVoice_IndependencePlay();

#endif

    return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS;
}