Skip to content
Snippets Groups Projects
Commit edd0d84c authored by Federico's avatar Federico
Browse files

Added transaction printing from dma-lowlevel-test

parent 2029622d
Branches
Tags
No related merge requests found
......@@ -33,7 +33,13 @@ int main()
auto sample=[&]()
{
if(spi.transaction(req)==false) puts("DMA error");
for(auto& r : req) inemo.onDMAUpdate(r);
for(auto& r : req)
{
inemo.onDMAUpdate(r);
printf("ID: %d --> ", r.id());
auto& resp=r.readResponseFromPeripheral();
memDump(resp.data(), resp.size());
}
};
for(int i=0;i<2;i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment