From 2b73169897bf3607cd70ceab921d3e30b1809351 Mon Sep 17 00:00:00 2001
From: Rahix <rahix@rahix.de>
Date: Thu, 13 Jun 2019 20:09:54 +0200
Subject: [PATCH] fix(dual-core): Don't use a SysTick based delay

---
 hw-tests/dual-core/core1.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw-tests/dual-core/core1.c b/hw-tests/dual-core/core1.c
index adb31bf8..d985620c 100644
--- a/hw-tests/dual-core/core1.c
+++ b/hw-tests/dual-core/core1.c
@@ -1,6 +1,6 @@
 #include "board.h"
 #include "gpio.h"
-#include "mxc_delay.h"
+#include "tmr_utils.h"
 
 static const gpio_cfg_t motor_pin = {PORT_0, PIN_8, GPIO_FUNC_OUT, GPIO_PAD_NONE};
 
@@ -11,7 +11,7 @@ int main(void)
 	for (int i = 0; 1; i++) {
 		__asm volatile("wfe");
 		printf("core1: Hello! %d\n", i);
-		mxc_delay(3000000);
+		TMR_Delay(MXC_TMR1, SEC(1), 0);
 		printf("core1: Waking up core0\n");
 		__asm volatile("sev");
 		__asm volatile("wfe");
-- 
GitLab