Commit 40fb232f authored by schneider's avatar schneider
Browse files

fix(testapp): Poll interrupt. Interruptdoes not seem to be working

parent a975868e
......@@ -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");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment