- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
I want to test SGDMA park funvtion
simple test code temp1=IORD_ALTERA_AVALON_SGDMA_CONTROL(TX_SGDMA_BASE); temp1=temp1|ALTERA_AVALON_SGDMA_CONTROL_PARK_MSK; IOWR_ALTERA_AVALON_SGDMA_CONTROL(TX_SGDMA_BASE, temp1); alt_avalon_sgdma_construct_mem_to_stream_desc( &desc[2],//主描述字 &desc[2],//次描述字 buf,//发送指针 1468,//发送字数 0, 1,//发送SOP 1,//发送EOP 0); alt_avalon_sgdma_do_sync_transfer (sgdma_tx_dev, &desc[2]); SGDMA can continuously work as I imagined if I chang the code temp1=IORD_ALTERA_AVALON_SGDMA_CONTROL(TX_SGDMA_BASE); temp1=temp1|ALTERA_AVALON_SGDMA_CONTROL_PARK_MSK; IOWR_ALTERA_AVALON_SGDMA_CONTROL(TX_SGDMA_BASE, temp1); alt_avalon_sgdma_construct_mem_to_stream_desc( &desc[2],//主描述字 &desc[3],//次描述字 buf,//发送指针 1468,//发送字数 0, 1,//发送SOP 1,//发送EOP 0); alt_avalon_sgdma_construct_mem_to_stream_desc( &desc[3],//主描述字 &desc[2],//次描述字 buf,//发送指针 1468,//发送字数 0, 1,//发送SOP 1,//发送EOP 0); alt_avalon_sgdma_do_sync_transfer (sgdma_tx_dev, &desc[2]); SGDMA can not continuously work as I imagined why?park bit cannot support chain ????コピーされたリンク
0 返答(返信)
