Skip to content

Commit

Permalink
Merge pull request #138 from VladimirP1/master
Browse files Browse the repository at this point in the history
software/user/litepcie_test: set reader_enable, writer_enable in play and record
  • Loading branch information
enjoy-digital authored Nov 21, 2024
2 parents 867c818 + fccd1cf commit d9a7ca9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions litepcie/software/user/litepcie_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ static void litepcie_record(const char *device_name, const char *filename, uint3
if (litepcie_dma_init(&dma, device_name, zero_copy))
exit(1);

dma.writer_enable = 1;

/* Test Loop. */
last_time = get_time_ms();
for (;;) {
Expand Down Expand Up @@ -133,6 +135,8 @@ static void litepcie_play(const char *device_name, const char *filename, uint32_
if (litepcie_dma_init(&dma, device_name, zero_copy))
exit(1);

dma.reader_enable = 1;

/* Test Loop. */
last_time = get_time_ms();
for (;;) {
Expand Down

0 comments on commit d9a7ca9

Please sign in to comment.