From 40fb232fa999a3ff62b2c8a5bf8cffed5c150f13 Mon Sep 17 00:00:00 2001
From: schneider <schneider@blinkenlichts.net>
Date: Tue, 7 May 2019 21:41:50 +0200
Subject: [PATCH] fix(testapp): Poll interrupt. Interruptdoes not seem to be
 working

---
 testapp/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testapp/main.c b/testapp/main.c
index 1aa9bc36..391b0885 100644
--- a/testapp/main.c
+++ b/testapp/main.c
@@ -288,7 +288,7 @@ int main(void)
     TMR_Delay(MXC_TMR0, MSEC(1500), 0);
 
     // Enable 32 kHz output
-    //RTC_SquareWave(MXC_RTC, SQUARE_WAVE_ENABLED, F_32KHZ, NOISE_IMMUNE_MODE, NULL);
+    RTC_SquareWave(MXC_RTC, SQUARE_WAVE_ENABLED, F_32KHZ, NOISE_IMMUNE_MODE, NULL);
 
     // Enable SPI
     sys_cfg_spi_t spi17y_master_cfg;
@@ -337,7 +337,7 @@ int main(void)
 
 #if 1
         // Read back ECG samples from the FIFO
-        if( ecgFIFOIntFlag ) {
+        if( ecgFIFOIntFlag || GPIO_InGet(&interrupt_pin) == 0) {
             ecgFIFOIntFlag = false;
 
             //printf("Int\n");
-- 
GitLab