Megaphone_Attention.c
682 字节
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "JZsdkLib.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()
{
//如果是喊话器设备
#ifdef MEGAPHONE_CONFIG_STATUS_ON
//引脚初始化
Ircut_Init();
//设备信息初始化
DeviceInfo_Init();
//音频库初始化
AudioDeal_Init();
//喊话器初始化
Megaphone_Init();
//播放声音
AttentionVoice_IndependencePlay();
#endif
return JZ_ERROR_SYSTEM_MODULE_CODE_SUCCESS;
}