Skip to content

Commit

Permalink
dma: disable on Jailhouse or !H3
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Hecht committed Jan 8, 2024
1 parent 918e330 commit aa46cd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dma.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#if !defined(JAILHOUSE) && defined(AWBM_PLATFORM_h3)

#include <stdint.h>

#include "ccu.h"
Expand Down Expand Up @@ -54,3 +56,5 @@ void dma_wait(int channel)
{
while (DMA_STA_REG & (1 << channel)) {}
}

#endif // !JAILHOUSE && AWBM_PLATFORM_h3

0 comments on commit aa46cd3

Please sign in to comment.