aboutsummaryrefslogtreecommitdiff
path: root/src/spi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/spi.c')
-rw-r--r--src/spi.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/spi.c b/src/spi.c
index 5c84b77..a416014 100644
--- a/src/spi.c
+++ b/src/spi.c
@@ -4,6 +4,7 @@
#include "ch573/gpio.h"
#include "ch573/spi.h"
+#include "sysled.h"
#define MAX_SPI_FIFO 8
@@ -79,7 +80,10 @@ void dma_transfer(void* output_buffer, size_t len)
void wait_for_dma()
{
- while (SPI.total_count.get(SPI0) > 0);
+ while (SPI.total_count.get(SPI0) > 0) {
+ set_sysled(1);
+ }
+ set_sysled(0);
}
void run_spi(void)