问答

汇集网友智慧,解决技术难题

21ic问答首页 - TAG - play
  • STM32F769 SAI 录音播放回环问题 sos

    32F769IDISCOVERY开发板,在SAI_AudioPlay例程里添加SAI 录音部分的初始化代码,发现在不给PlayBuffHAL_SAI_Transmit_DMA(&SaiHandle, (uint8_t *)PlayBuff, PLAY_BUFF_SIZE))填数据的时候,会将RECbuff(HAL_SAI_Receive_DMA(&SaiHandle_REC, (uint8_t *)RECBuff, REC_BUFF_SIZE)里的数据发送出去,在耳机端听到linein端的音频。关掉DMA后耳机端无声音,不会是codec WM8994的设置问题,求解,谢谢。

    DMA AI STM32F769 play AN DMA

    3971浏览量 0回复量 关注量
  • 求助,函数没写到主函数里,为什么能执行成功

    void SMG_Play()该函数没写到主函数里,但是一个错误和警告都没有,而且该函数还执行成功了?为什么??求助 #include #include unsigned char code SMG_Select_1[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90,0x88,0x83,0xc6,0xa1,0x86,0x8e,0xbf,0x7f}; unsigned int temp=0; unsigned char c=0; unsigned char b=0; void SMG_Play(); void SCQ_Set(unsigned char a) { switch(a) { case 4:P2=(P2&0x1f)|0x80; break; case 5:P2=(P2&0x1f)|0xa0; break; case 6:P2=(P2&0x1f)|0xc0; break; case 7:P2=(P2&0x1f)|0xe0; break; case 0:P2=(P2&0x1f)|0x00; break; } } void Delay_1(unsigned int t) { while(t--); } void Delay_SMG(unsigned int t) { while(t--) { SMG_Play(); } } void SMG_Set(unsigned char num,unsigned char loc) { SCQ_Set(6); P0=0x01<>4); } void SMG_Play() { SMG_Set(SMG_Select_1[16],0); Delay_1(100);P0=0xff; SMG_Set(SMG_Select_1[0],1); Delay_1(100);P0=0xff; SMG_Set(SMG_Select_1[16],2); Delay_1(100);P0=0xff; SMG_Set(0xff,3); Delay_1(100);P0=0xff; SMG_Set(0xff,4); Delay_1(100);P0=0xff; SMG_Set(0xff,5); Delay_1(100);P0=0xff; SMG_Set(SMG_Select_1[temp/10],6); Delay_1(100);P0=0xff; SMG_Set(SMG_Select_1[temp%10],7); Delay_1(100);P0=0xff; } void main() { P2=0x80;P0=0xff; P2=0xa0;P0=0x00; //初始化 while(1) { DS18B20_Set(); } }

    函数 se unsigned dc play

    3841浏览量 3回复量 关注量