结构体
typedef struct
{
uint16_t mPitch; //
int8_t mBeat; //
}Music;
const Music S_Key_Voice[] =
{
// {音名,节拍}
{HHH2,14},
{HHHHH7,254},
{HHHHHH1,254},
{HHHHH7,254},
{0,0} //结束标志
};
const Music L_Key_Voice[] =
{
// {音名,节拍}
{HHH2,2},
{HHHHH7,254},
{HHHHHH1,254},
{HHHHH7,254},
{0,0} //结束标志
};
void Prompt_Tone(uint8_t Voice_type)
{
if(Voice_type == 0)
{
Play_Music(S_Key_Voice);//嘀
delay_ms(20);
}
else
{
Play_Music(L_Key_Voice);//嘀--
delay_ms(20);
}
}
编译错误提示:symbol S_Key_Voice multiply defind
程序以前在IAR编译通过,现在用在MDK,不知道要怎么改才行?
一周热门 更多>